Logstash Module - Change it to arrays

This commit is contained in:
Mike Reeves
2018-10-16 17:41:04 -04:00
parent 335ac02720
commit ea7ddfc2da

View File

@@ -11,18 +11,18 @@ input {
filter { filter {
if "ids" in [tags] { if "ids" in [tags] {
mutate { mutate {
rename => { "[beat][name]", "sensor_name" }
rename => { "[beat][hostname]", "syslog-host_from" }
remove_tag => ["beat"]
rename => { "host" => "beat_host" } rename => { "host" => "beat_host" }
remove_tag => ["beat"]
copy => {"%{beat[name]}" => "sensor_name"}
copy => {"%{beat[name]}" => "syslog-host_from"}
} }
} }
if "bro" in [tags] { if "bro" in [tags] {
mutate { mutate {
rename => { "[beat][name]", "sensor_name" } rename => { "host" => "beat_host" }
rename => { "[beat][hostname]", "syslog-host_from" } remove_tag => ["beat"]
remove_tag => ["beat"] copy => {"%{beat[name]}" => "sensor_name"}
rename => { "host" => "beat_host" } copy => {"%{beat[name]}" => "syslog-host_from"}
} }
} }
} }