Skip to content

Comments

Feature/syscheck decoders json ohmy#915

Merged
ddpbsd merged 5 commits intoossec:masterfrom
reyjrar:feature/syscheck-decoders-json-ohmy
Aug 9, 2016
Merged

Feature/syscheck decoders json ohmy#915
ddpbsd merged 5 commits intoossec:masterfrom
reyjrar:feature/syscheck-decoders-json-ohmy

Conversation

@reyjrar
Copy link
Member

@reyjrar reyjrar commented Aug 9, 2016

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.

ddpbsd and others added 5 commits August 8, 2016 17:15
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.
@ddpbsd ddpbsd merged commit 700b6f7 into ossec:master Aug 9, 2016
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants