Debian Codegraph @

example-conf/conf.daemon

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 }
42
43 COLOR brightgreen
44 {
45 # matches sshd[??]: log: Connection from
46 ^... .. ..:..:.. [^ ]+ (sshd\[[0-9]+\]: log: Connection from).*$
47 }
48
49 COLOR brightblue
50 {
51 # matches the output from the "program"
52 ^... .. ..:..:.. [^ ]+ [^ ]+ (.*)
53 }