Logstash cheat sheet: Difference between revisions

Line 1,040: Line 1,040:
if [client_ip] =~ /:/ {
if [client_ip] =~ /:/ {
   # is IPv6, do something
   # is IPv6, do something
  mutate {
    add_field => { "client_ipv6" => "%{client_ip}" }
  }
}
}
</syntaxhighlight>
</syntaxhighlight>