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