[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: syslog filter



On 10.07.2012 15:37, Muhammad Yousuf Khan wrote:
> there is a very specific daemon log which is generating every minute
> and i want this log not written in syslog message however the daemon
> itself not providing the facility to stop it. so is there any thing
> that i could configure debian not to accept this particular log.
> 
> here is the log detail.
> 
> uID 	1619
> Date 	Today 18:30:50
> Host 	panda
> Messagetype 	Syslog
> Facility 	DAEMON
> Severity 	INFO
> Syslogtag 	pvemirror[7044]:
> Checksum 	0
> Message 	cluster syncronization finished (0.47 seconds (files 0.00,
> config 0.16))
> 


Depends on the syslog daemon you are using.
With rsyslog you have powerful filtering capabilities and you can
basically match on any part of the syslog message and drop it with the
"~" operator.

http://www.rsyslog.com/doc/rsyslog_conf_filter.html

HTH,
Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: