mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-05 08:27:19 -04:00
Add ping parser
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
filetype: ping
|
||||||
|
|
||||||
|
detect:
|
||||||
|
filename: "\\.ping$"
|
||||||
|
header: "(^PING[[:space:]]+[\\S+])"
|
||||||
|
|
||||||
|
rules:
|
||||||
|
# IP
|
||||||
|
- blue: "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}"
|
||||||
|
# IP v6
|
||||||
|
- blue: "(([0-9a-fA-F]{1,4})?\\:\\:?[0-9a-fA-F]{1,4})+"
|
||||||
|
# seq
|
||||||
|
- green: "icmp_seq=(\\d+)"
|
||||||
|
# ttl
|
||||||
|
- cyan: "ttl=(\\d+)"
|
||||||
|
# host
|
||||||
|
- yellow: "(?:[fF]rom|PING)\\s(\\S+)\\s"
|
||||||
|
- yellow: "--- (\\S+) ping statistics ---"
|
||||||
|
- cyan: "\\s([0-9\\.]+)\\/([0-9\\.]+)\\/([0-9\\.]+)\\/([0-9\\.]+) ms"
|
||||||
|
- cyan: "(min/avg/max/mdev)"
|
||||||
|
# ttl
|
||||||
|
- red: "time=([0-9\\.]+)\\s?ms"
|
||||||
|
# errors
|
||||||
|
- red: "DUP\\!"
|
||||||
|
- red: "(Destination Host Unreachable|100(\\.0)?% packet loss)"
|
||||||
|
- red: ".+unknown\\shost\\s(.+)"
|
||||||
|
|
||||||
Reference in New Issue
Block a user