mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 10:12:53 +01:00
Logstash Module - Change it to arrays
This commit is contained in:
@@ -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"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user