Skip to content

Latest commit

 

History

History
 
 

Config-Samples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Contributing Config Samples

LogScale Community Content is managed through a Pull Request (PR), Review and Approval process.

Nobody is able to contribute directly into main. Contributors will need to create a new branch of the LogScale Community Content prior to submitting content and packages via a PR.

If you are struggling with GitHub or the process, reach out via an Issue and we can do it for you. We are here to help.

Contributing Config Samples

  1. Create or export your Config Sample. The file name should reflect the purpose, e.g. windows_event_codes.csv

  2. Add descriptive comments at the top of the file. Comments start with //

    e.g. // This is my comment.

Contributing Config Samples via the GitHub Web Site

  1. If an appropriate Config Sample directory does not exist follow the Create a new Config Samples Directory steps below to create the appropriate folder structure

    e.g. Config-Samples/Log-Shippers/Fluentd

  2. Create a new file and upload the Config Sample. You will be prompted to create a new branch to stage the changes in. Please use a branch name similar to this:

<username>-update-XXX-config-samples

  1. Repeat for other Config Samples

  2. Submit the pull request.

Contributing Config Samples via the Git Commandline

  1. If an appropriate Config Samples directory does not exist follow the Create a new Config Samples Directory steps below to create the appropriate folder structure

    e.g. Config-Samples/Log-Shippers/Fluentd

  2. Copy into the approprite directory your Config Sample

  3. Repeat for other Config Samples

  4. Stage, Commit and create a Pull Request. Refer to Stage, Commit and PR for the required steps

Create a New Config Sample

Create a New Config Sample via the GitHub Web Site

The following blog provides a great walkthrough for creating folder structures in GitHub via the Web Site - https://medium.com/@kartikagrawal7196/how-to-create-a-folder-in-a-github-repository-36b0fd8f9bf8

Create a New Config Sample via the Git Commandline

  1. Clone the repository

    git clone https://github.com/CrowdStrike/logscale-community-content.git

  2. Change to the logscale-community-content directory

    cd logscale-community-content

  3. Create a new branch with an appropriate name

    e.g. git branch <username>-update-XXX-config-sample

  4. Switch to the newly created branch

    e.g. git checkout <username>-update-XXX-config-sample

  5. Create a new folder under the Config-Sample directory

    mkdir Config-Sample\new_Config-Sample

Stage, Commit and PR via the Git Commandline

  1. Make sure you are at the top level directory - logscale-community-content

  2. MAC USERS ONLY remove all .DS_STORE files

    find . -name '.DS_Store' -type f -delete

  3. Stage Added, Removed and Modified files and directories

    git add .

  4. Check to make sure all changes have bee staged

    git status

  5. Commit staged files and directories

    git commit -m "<Commit Comment>"

  6. Create Pull Request

    git push --set-upstream origin <branch name>

  7. Log into the LogScale Community Content Repository

  8. When prompted create the Pull Request

Once your contribution is merged into main we will delete your branch.