hi guys,
input log message contains IP address but the occurence of ip is random inside message and also some times the message will not contain any ip ...how can we extract this ip address using grok or other filters.
example of input log messages :
this is server log 10.20.30.10 error observed
10.20.50.10 exception occurred
no error observed.
i am trying below, not working
grok { match => {"message" => " ((?<wildcard>.*)%{IPV4:IP}(?<wildcard>.*)") | %{IPV4:IP}(?<wildcard>.*) | (?<wildcard>.*)}
}