mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-17 14:33:11 +01:00
Logstash - Alter input for Wazuh logs
This commit is contained in:
@@ -9,7 +9,7 @@ input {
|
||||
}
|
||||
}
|
||||
filter {
|
||||
if [type] == "ids" {
|
||||
if [type] == "ids" or [type] =~ "bro" {
|
||||
mutate {
|
||||
rename => { "host" => "beat_host" }
|
||||
remove_tag => ["beat"]
|
||||
@@ -17,11 +17,10 @@ filter {
|
||||
add_field => { "syslog-host_from" => "%{[beat][name]}" }
|
||||
}
|
||||
}
|
||||
if "bro" in [tags] {
|
||||
if [type] =~ "ossec" {
|
||||
mutate {
|
||||
rename => { "host" => "beat_host" }
|
||||
remove_tag => ["beat"]
|
||||
add_field => { "sensor_name" => "%{[beat][name]}" }
|
||||
add_field => { "syslog-host_from" => "%{[beat][name]}" }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user