Newbe Log check questions
I'm a newbe to logcheck and need some help writing a rule.
Here's the output I'm trying to block:
Nov 1 09:11:52 m0n0wall ipmon[79]: 09:11:52.330133 xl0 <at> 100:3 p 192.168.2.201
,1900 -> 239.255.255.250,1900 PR udp len 20 291 K-S IN
And here's my rule in /etc/logcheck/violations.ignore.d/local-m0n0
^\w{3} [ :0-9]{11} m0n0wall ipmon\[[0-9]+\]: [0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{6} xl0 <at> 100:3 p 0-9]\.[0-9]\.[0-9]\.[0-9],1900 -> [0-9]\.[0-9]\.[0-9]\.[0-9],1900 PR udp le9n 20 291 K-S IN$
The rule is on one line in the single file (it's the only rule in the file)
I've tested it using:
sed -e 's/[[:space:]]*$//' /var/log/syslog | egrep '^\w{3} [ :0-9]{11} m0n0wall ipmon\[[0-9]+\]:
[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{6} xl0 <at> 100:3 p
0-9]\.[0-9]\.[0-9]\.[0-9],1900 -> [0-9]\.[0-9]\.[0-9]\.[0-9],1900 PR
udp le9n 20 291 K-S IN$'
and it prints out the data I wish to block.
Anyone have any ideas?
Thanks,
Denis
_______________________________________________ Logcheck-users mailing list Logcheck-users@... http://lists.alioth.debian.org/mailman/listinfo/logcheck-users
RSS Feed