Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   syslog filter (http://www.linux-archive.org/debian-user/682006-syslog-filter.html)

Muhammad Yousuf Khan 07-10-2012 01:37 PM

syslog filter
 
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))

Thanks,


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAGWVfMkp9rwTCj0rXh_j0_XPyEkzOFoHC7m49vcmiY3-Tr+pPg@mail.gmail.com">http://lists.debian.org/CAGWVfMkp9rwTCj0rXh_j0_XPyEkzOFoHC7m49vcmiY3-Tr+pPg@mail.gmail.com

Michael Biebl 07-10-2012 02:24 PM

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?

Michael Biebl 07-10-2012 02:26 PM

syslog filter
 
On 10.07.2012 16:24, Michael Biebl wrote:

> 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

http://www.rsyslog.com/doc/property_replacer.html → "Available
Properties" lists the properties you can match against.


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

Muhammad Yousuf Khan 07-11-2012 06:50 AM

syslog filter
 
Thanks bro. it worked :)

On Tue, Jul 10, 2012 at 7:26 PM, Michael Biebl <biebl@debian.org> wrote:
> On 10.07.2012 16:24, Michael Biebl wrote:
>
>> 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
>
> http://www.rsyslog.com/doc/property_replacer.html → "Available
> Properties" lists the properties you can match against.
>
>
> --
> Why is it that all of the instruments seeking intelligent life in the
> universe are pointed away from Earth?
>


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAGWVfMnDBdzLMddOeNwr1qU5koaR1oMR8dJd8HrL_+t3U8QNP Q@mail.gmail.com">http://lists.debian.org/CAGWVfMnDBdzLMddOeNwr1qU5koaR1oMR8dJd8HrL_+t3U8QNP Q@mail.gmail.com


All times are GMT. The time now is 05:37 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.