Closed dougburks closed 4 years ago
Here's the current logic in the traditional Logstash config:
if [source_ip] {
mutate {
add_field => { "ips" => "%{source_ip}" }
add_field => { "source_ips" => [ "%{source_ip}" ] }
}
}
if [destination_ip] {
mutate {
add_field => { "ips" => "%{destination_ip}" }
add_field => { "destination_ips" => [ "%{destination_ip}" ] }
}
}
Looks good!
Add the following fields: ips source_ips destination_ips