no, your line gives two destinations.

~ says to discard any message that matches the filter.

you then put the lines to do something with the logs after that.

there may be better ways to get what you are wanting, but you haven't explained your entire logic.

David Lang

On Fri, 22 Jun 2012, Thomas Lau wrote:

Date: Fri, 22 Jun 2012 09:30:17 +0800
From: Thomas Lau <[email protected]>
Reply-To: rsyslog-users <[email protected]>
To: rsyslog-users <[email protected]>
Subject: Re: [rsyslog] severity discard

*.info;*.debug ~ :ommysql

Like that ?

Thomas Lau
Senior Technology Analyst
Principle One Limited
27/F Kinwick Centre, 32 Hollywood Road, Central, Hong Kong
T  +852 3555 2217     F  +852 3555 2222      M  +852 9880 1217
Hong Kong   .   Singapore   .   Tokyo


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of [email protected]
Sent: Friday, June 22, 2012 9:18 AM
To: rsyslog-users
Subject: Re: [rsyslog] severity discard

this should work

*.debug,*.info ~

David Lang

On Fri, 22 Jun 2012, Thomas Lau wrote:

Date: Fri, 22 Jun 2012 08:56:05 +0800
From: Thomas Lau <[email protected]>
Reply-To: rsyslog-users <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [rsyslog] severity discard

Dear All,

Does anyone know how could I discard severity from 6 -7?

0 Emergency: system is unusable
1 Alert: action must be taken immediately
2 Critical: critical conditions
3 Error: error conditions
4 Warning: warning conditions
5 Notice: normal but significant condition
6 Informational: informational messages
7 Debug: debug-level messages


Thomas Lau
Senior Technology Analyst
Principle One Limited
27/F Kinwick Centre, 32 Hollywood Road, Central, Hong Kong
T  +852 3555 2217     F  +852 3555 2222      M  +852 9880 1217
Hong Kong   .   Singapore   .   Tokyo

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards

Reply via email to