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.
-
Create or export your Config Sample. The file name should reflect the purpose, e.g. windows_event_codes.csv
-
Add descriptive comments at the top of the file. Comments start with //
e.g.
// This is my comment.
-
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
-
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
-
Repeat for other Config Samples
-
Submit the pull request.
-
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
-
Copy into the approprite directory your Config Sample
-
Repeat for other Config Samples
-
Stage, Commit and create a Pull Request. Refer to Stage, Commit and PR for the required steps
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
-
Clone the repository
git clone https://github.com/CrowdStrike/logscale-community-content.git
-
Change to the logscale-community-content directory
cd logscale-community-content
-
Create a new branch with an appropriate name
e.g.
git branch <username>-update-XXX-config-sample
-
Switch to the newly created branch
e.g.
git checkout <username>-update-XXX-config-sample
-
Create a new folder under the Config-Sample directory
mkdir Config-Sample\new_Config-Sample
-
Make sure you are at the top level directory - logscale-community-content
-
MAC USERS ONLY remove all .DS_STORE files
find . -name '.DS_Store' -type f -delete
-
Stage Added, Removed and Modified files and directories
git add .
-
Check to make sure all changes have bee staged
git status
-
Commit staged files and directories
git commit -m "<Commit Comment>"
-
Create Pull Request
git push --set-upstream origin <branch name>
-
Log into the LogScale Community Content Repository
-
When prompted create the Pull Request
Once your contribution is merged into main we will delete your branch.