| 1 |
COLOR magenta |
| 2 |
{ |
| 3 |
# matches the date |
| 4 |
^(... ..).*$ |
| 5 |
} |
| 6 |
|
| 7 |
COLOR cyan |
| 8 |
{ |
| 9 |
# matches the time |
| 10 |
^... .. (..:..:..).*$ |
| 11 |
} |
| 12 |
|
| 13 |
COLOR green |
| 14 |
{ |
| 15 |
# matches the hostname |
| 16 |
^... .. ..:..:.. ([^ ]+).*$ |
| 17 |
} |
| 18 |
|
| 19 |
COLOR yellow |
| 20 |
{ |
| 21 |
# matches the "program" that wrote to syslog |
| 22 |
^... .. ..:..:.. [^ ]+ ([^ ]+) |
| 23 |
} |
| 24 |
|
| 25 |
COLOR brightyellow |
| 26 |
{ |
| 27 |
# matches one ip adresses in one line |
| 28 |
^.*([0-9]{3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*$ |
| 29 |
^.*([0-9]{2}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*$ |
| 30 |
^.*([0-9]{1}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*$ |
| 31 |
# matches two ip adresses in one line |
| 32 |
^.*([0-9]{3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*([0-9]{3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*$ |
| 33 |
^.*([0-9]{2}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*([0-9]{2}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*$ |
| 34 |
^.*([0-9]{1}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*([0-9]{1}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*$ |
| 35 |
} |
| 36 |
|
| 37 |
COLOR brightred |
| 38 |
{ |
| 39 |
# matches DENY |
| 40 |
^.*(ppp-in DENY ppp0).*$ |
| 41 |
^.*(eth-in DENY eth0).*$ |
| 42 |
} |
| 43 |
|
| 44 |
COLOR brightblue |
| 45 |
{ |
| 46 |
# matches the output from the "program" |
| 47 |
^... .. ..:..:.. [^ ]+ [^ ]+ (.*) |
| 48 |
} |
| 49 |
|