-
Notifications
You must be signed in to change notification settings - Fork 1
/
colortail
101 lines (86 loc) · 1.79 KB
/
colortail
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#COLOR brightred
#COLOR brightwhite
COLOR brightcyan
{
# matches the date
^(... ..).*$
}
COLOR brightcyan
{
# matches the time
^... .. (..:..:..).*$
}
COLOR brightgreen
{
# matches the hostname
^... .. ..:..:.. ([^ ]+).*$
}
COLOR brightyellow
{
# matches the "program" that wrote to syslog
^... .. ..:..:.. [^ ]+ ([^ ]+)
}
COLOR brightgreen
{
^.*(\b([uU][pP])\b).*$
}
COLOR brightred
{
^.*(\b([dD][oO][wW][nN])\b).*$
}
COLOR brightred
{
^.*(\b([pP][oO][wW][eE][rR])\b).*$
}
COLOR brightred
{
^.*(\b([eE][rR][rR][-][dD][iI][sS][aA][bB][lL][eE])\b).*$
}
COLOR brightred
{
^.*(\b([eE][rR][rR][oO][rR])\b).*$
}
COLOR brightred
{
^.*(\b([iI][nN][cC][oO][nN][sS][iI][sS][tT][eE][nN][cC][yY])\b).*$
}
COLOR brightgreen
{
^.*(\b([sS][uU][cC][cC][eE][sS][sS][fF][uU][lL][lL][yY])\b).*$
}
COLOR brightred
{
^.*(\b([dD][iI][sS][aA][bB][lL][iI][nN][gG])\b).*$
}
COLOR brightgreen
{
^.*(\b([rR][eE][cC][oO][vV][eE][rR])\b).*$
}
COLOR brightmagenta
{
# matches all ip adresses
^.*([0-9]{3}\.[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}).*$
^.*([0-9]{1}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*$
# matches two ip adresses in one line
^.*([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}).*$
^.*([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}).*$
^.*([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}).*$
# Match Cisco
^.*([0-9A-Fa-f]{4}\.[0-9A-Fa-f]{4}\.[0-9A-Fa-f]{4}).*$
([0-9A-Fa-f]{4}\.[0-9A-Fa-f]{4}\.[0-9A-Fa-f]{4})
}
COLOR brightred
{
# matches the word root
^.*(root).*$
# matches DENY
^.*(ppp-in DENY ppp0).*$
^.*(eth-in DENY eth0).*$
}
#COLOR brightgreen
COLOR brightwhite
{
# matches the output from the "program"
^... .. ..:..:.. [^ ]+ [^ ]+ (.*)
}