mirror of
https://github.com/garabik/grc.git
synced 2024-11-10 21:26:52 +01:00
6006304f28
- good regular expression for warning messages (letters from : https://linux.die.net/man/8/traceroute) - remove the example with the command mail (which report with traceroute ?) traceroute to 30.0.0.4 (30.0.0.4), 30 hops max, 60 byte packets 1 10.0.0.2 (10.0.0.2) 0.648 ms 0.479 ms 0.426 ms 2 23.0.0.3 (23.0.0.3) 1.983 ms 2.402 ms 2.509 ms 3 23.0.0.3 (23.0.0.3) 3058.805 ms !H 3059.171 ms !H 3058.985 ms !H
41 lines
533 B
Plaintext
41 lines
533 B
Plaintext
# hostname
|
|
regexp=\s\w+[\w\-\.]+\w+
|
|
colours=bold white
|
|
count=once
|
|
-
|
|
# ip number
|
|
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
|
|
colours=magenta
|
|
-
|
|
# ipv6 number
|
|
regexp=(([0-9a-fA-F]{1,4})?\:\:?[0-9a-fA-F]{1,4})+
|
|
colours=magenta
|
|
-
|
|
# time
|
|
regexp=\d+\.?\d*(?=\sms)
|
|
colours=green
|
|
-
|
|
# ms
|
|
regexp=\bms\b
|
|
colours=yellow
|
|
-
|
|
# DUP
|
|
regexp=\bDUP
|
|
colours=red
|
|
-
|
|
# !S, !A, !H (host unreachable), etc.
|
|
regexp=\s\!([HNPSFXVC]|\d+)
|
|
colours=red
|
|
-
|
|
# ttl=...!
|
|
regexp=ttl=\d+\!
|
|
colours=cyan
|
|
-
|
|
# *
|
|
regexp=\*
|
|
colours=red
|
|
-
|
|
# parenthesis
|
|
regexp=\(|\)
|
|
colours=yellow
|