Debian Codegraph @

example-conf/conf.xferlog

raw
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 all ip adresses
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 the word root
40 ^.*(root).*$
41 # matches DENY
42 ^.*(ppp-in DENY ppp0).*$
43 ^.*(eth-in DENY eth0).*$
44 }
45
46 COLOR brightblue
47 {
48 # matches the output from the "program"
49 ^... ... .. ..:..:.. [^ ]+ [^ ]+ (.*)
50 }