Feature/syscheck decoders json ohmy#915
Merged
ddpbsd merged 5 commits intoossec:masterfrom Aug 9, 2016
Merged
Conversation
The path to realtime_adddir was splintered based on whether we were compiling on Windows or a system with Inotify. This patches makes all the logic for realtime_adddir() in the the read_dir() function which create_db() calls. This is just to simplify the code a bit. It does not change how the code functions.
If you want to intercept FIM events and run them through a verification process of some kind, you may want to set the filename based on another incoming event. This patch allows the author of a decoder to set the filename attribute of the event for handing to active response or writing out to syslog or json.
We already have parsed these elements and used them in the rules, so why not pass them along to JSON consumers. This gives users more flexibility to analyze their alerts in a system like ElasticSearch without having to reparse or remap this data. This will hopefully deduplicate slower Logstash type configs.
atomicturtle
added a commit
to atomicturtle/ossec-hids
that referenced
this pull request
Dec 4, 2017
"A few fixes, but most importantly the ability to set the filename attribute from a decoder. This will help create automated pipelines for FIM Verification. I currently need to compare FIM events against 1) Puppet, 2) GIT, and 3) RPM. This patch allows FIM events to be intercepted by my custom FIM Verification script, which generates logging events which OSSEC can read and turn back into an event with the filename attribute set." Signed-off-by: Scott R. Shinn <scott@atomicorp.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A few fixes, but most importantly the ability to set the filename attribute from a decoder. This will help create automated pipelines for FIM Verification. I currently need to compare FIM events against 1) Puppet, 2) GIT, and 3) RPM. This patch allows FIM events to be intercepted by my custom FIM Verification script, which generates logging events which OSSEC can read and turn back into an event with the filename attribute set.