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,21 @@ input {
|
|||||||
filter {
|
filter {
|
||||||
if "ids" in [tags] {
|
if "ids" in [tags] {
|
||||||
mutate {
|
mutate {
|
||||||
add_field => {"sensor_name" => "%{beat.name}"}
|
add_field => {"sensor_name" => "%{[beat][name]}"}
|
||||||
add_field => {"syslog-host_from" => "%{beat.hostname}"}
|
add_field => {"syslog-host_from" => "%{[beat][hostname]}"}
|
||||||
remove_tag => ["beat"]
|
remove_tag => ["beat"]
|
||||||
rename => { "host" => "beat_host" }
|
rename => { "host" => "beat_host" }
|
||||||
remove_field => ["beat.name", "beat.hostname"]
|
remove_field => ["[beat][name]", "[beat][hostname]"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if "bro" in [tags] {
|
if "bro" in [tags] {
|
||||||
mutate {
|
mutate {
|
||||||
|
add_field => {"sensor_name" => "%{[beat][name]}"}
|
||||||
|
add_field => {"syslog-host_from" => "%{[beat][hostname]}"}
|
||||||
remove_tag => ["beat"]
|
remove_tag => ["beat"]
|
||||||
rename => { "host" => "beat_host" }
|
rename => { "host" => "beat_host" }
|
||||||
|
remove_field => ["[beat][name]", "[beat][hostname]"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user