Created
October 17, 2018 12:43
-
-
Save defensivedepth/f1f8d6a2f7b52f5c8791cd0955595b89 to your computer and use it in GitHub Desktop.
osquery & security onion Integration
This file contains 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
# Place under /etc/logstash/custom, see here for more details: | |
# https://github.com/Security-Onion-Solutions/security-onion/wiki/Logstash | |
filter { | |
if "osquery" in [tags] { | |
json { | |
source => message | |
target => osquery | |
} | |
mutate { | |
remove_tag => [ "beat" ] | |
} | |
} | |
} | |
output { | |
if "osquery" in [tags] { | |
elasticsearch { | |
hosts => elasticsearch | |
index => "logstash-osquery-%{+YYYY.MM.dd}" | |
template => "/logstash-template.json" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment