Logstash EVAL pipeline fix - osquery

This commit is contained in:
Josh Brower
2020-02-05 08:12:08 -05:00
parent de04cc6631
commit c1dd26d97e
2 changed files with 18 additions and 4 deletions

View File

@@ -188,6 +188,7 @@ input {
file {
path => "/osquery/logs/result.log"
type => "osquery"
tags => ["osquery"]
}
file {
path => "/strelka/strelka.log"

View File

@@ -3,11 +3,24 @@
{%- else %}
{%- set ES = salt['pillar.get']('node:mainip', '') -%}
{%- endif %}
# Author: Josh Brower
# Last Update: 12/29/2018
# Output to ES for osquery tagged logs
# Author: Security Onion Solutions
# Last Update: 2/3/2020
# Output to ES for osquery tagged logs - EVAL install
filter {
if "osquery" in [tags] {
mutate {
rename => { "host" => "beat_host" }
remove_tag => ["beat"]
}
json {
source => "message"
target => "osquery"
}
}
}
output {
if "osquery" in [tags] {
elasticsearch {