I have this sample from a log:
Tue Mar 27 06:51:48 2018 PING www.google.com (172.217.169.100) 56(84) bytes of data.
64 bytes from sof02s31-in-f4.1e100.net (172.217.169.100): icmp_seq=1 ttl=128 time=17.4 ms
--- www.google.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 17.482/17.482/17.482/0.000 ms
I want to make a grok pattern for logstash and extract things like TIMESTAMP,IPV4,TTL , as well as the RTT values min/avg/max from last 2 lines.
This log is from a pinging script to the same IP every second or so. I guess I need a multiline pattern to take the values for each of those 6 lines at once?
Any Help would be great!!!
Thanks
(?<newline>(.|\r|\n)*)please read my answer. thanks - Sufiyan Ghori