[Logwatch] ignore.conf formatting question

Mike Tremaine mgt at stellarcore.net
Mon Apr 17 08:10:09 MST 2006


On Mon, 2006-04-17 at 10:02 -0500, Michael Weber wrote:
> Greetings!
> 
> I have the following line in my /etc/logwatch/conf/services/ignore.conf file.
> 
> /1 packet to udp/
> 
> What I want is to ignore all the logwatch output lines that look like this:
> 
>    From 30.250.239.160 - 1 packet to udp(1026) 
> 
> What do I need in that file?
> 

Try 

1 packet to udp


[No need to use / /, whatever is on a line alone gets pushed into a
matching regex that is like so   $logline =~ m/$ignore/; ]

-Mike



More information about the Logwatch mailing list