Logstash Module - Sensors now show up correclty

This commit is contained in:
Mike Reeves
2018-10-16 21:00:04 -04:00
parent a5979fcb88
commit 41e3b04b25
2 changed files with 6 additions and 6 deletions

View File

@@ -13,16 +13,16 @@ filter {
mutate {
rename => { "host" => "beat_host" }
remove_tag => ["beat"]
copy => {"%{beat[name]}" => "sensor_name"}
copy => {"%{beat[name]}" => "syslog-host_from"}
add_field => { "sensor_name" => "%{[beat][name]}" }
add_field => { "syslog-host_from" => "%{[beat][name]}" }
}
}
if "bro" in [tags] {
mutate {
rename => { "host" => "beat_host" }
remove_tag => ["beat"]
copy => {"%{beat[name]}" => "sensor_name"}
copy => {"%{beat[name]}" => "syslog-host_from"}
add_field => { "sensor_name" => "%{[beat][name]}" }
add_field => { "syslog-host_from" => "%{[beat][name]}" }
}
}
}