Skip to content

Instantly share code, notes, and snippets.

@defensivedepth
Created October 17, 2018 12:43
Show Gist options
  • Save defensivedepth/f1f8d6a2f7b52f5c8791cd0955595b89 to your computer and use it in GitHub Desktop.
Save defensivedepth/f1f8d6a2f7b52f5c8791cd0955595b89 to your computer and use it in GitHub Desktop.
osquery & security onion Integration
# 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