mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
Logstash Module - Change it to arrays
This commit is contained in:
@@ -11,18 +11,18 @@ input {
|
||||
filter {
|
||||
if "ids" in [tags] {
|
||||
mutate {
|
||||
rename => { "[beat][name]", "sensor_name" }
|
||||
rename => { "[beat][hostname]", "syslog-host_from" }
|
||||
remove_tag => ["beat"]
|
||||
rename => { "host" => "beat_host" }
|
||||
remove_tag => ["beat"]
|
||||
copy => {"%{beat[name]}" => "sensor_name"}
|
||||
copy => {"%{beat[name]}" => "syslog-host_from"}
|
||||
}
|
||||
}
|
||||
if "bro" in [tags] {
|
||||
mutate {
|
||||
rename => { "[beat][name]", "sensor_name" }
|
||||
rename => { "[beat][hostname]", "syslog-host_from" }
|
||||
remove_tag => ["beat"]
|
||||
rename => { "host" => "beat_host" }
|
||||
remove_tag => ["beat"]
|
||||
copy => {"%{beat[name]}" => "sensor_name"}
|
||||
copy => {"%{beat[name]}" => "syslog-host_from"}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user