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 |
COLOR magenta { # matches the date ^(... ..).*$ } COLOR cyan { # matches the time ^... .. (..:..:..).*$ # matches the word INFO ^.*(INFO|info).*$ } COLOR green { # matches the hostname ^... .. ..:..:.. ([^ ]+).*$ } COLOR yellow { # matches the "program" that wrote to syslog ^... .. ..:..:.. [^ ]+ ([^ ]+) } COLOR brightyellow { # matches all ip adresses ^.*([0-9]{3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}){1}([:][0-9][0-9][0-9][0-9][0-9]?).*$ ^.*([0-9]{2}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}){1}([:][0-9][0-9][0-9][0-9][0-9]?).*$ ^.*([0-9]{1}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}){1}([:][0-9][0-9][0-9][0-9][0-9]?).*$ # matches two ip adresses in one line ^.*([0-9]{3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}){1}([:][0-9][0-9][0-9][0-9][0-9]?).*([0-9]{3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}){1}([:][0-9][0-9][0-9][0-9][0-9]?).*$ ^.*([0-9]{2}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}){1}([:][0-9][0-9][0-9][0-9][0-9]?).*([0-9]{2}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}){1}([:][0-9][0-9][0-9][0-9][0-9]?).*$ ^.*([0-9]{1}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}){1}([:][0-9][0-9][0-9][0-9][0-9]?).*([0-9]{1}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}){1}([:][0-9][0-9][0-9][0-9][0-9]?).*$ # matches the word WARNING ^.*(WARNING|warning|WARN).*$ } COLOR brightred { # matches the word root ^.*(root).*$ # matches DENY ^.*(ppp-in DENY ppp0).*$ ^.*(eth-in DENY eth0).*$ # matches the word ERROR ^(ERROR|error|err).*$ ^.*(ERROR|error|err).*$ } COLOR brightblue { # matches the output from the "program" ^... .. ..:..:.. [^ ]+ [^ ]+ (.*) # matches the time ^.*([0-9]{2}:[0-9]{2}:[0-9]{2}).*$ } |