> I just tried it out. I got the following error message:
> 
> ===
> 2010-01-28T18:33:41.635158+01:00 rgf12 rsyslogd-2051: syntax error in
> expression [try http://www.rsyslog.com/e/2051 ]
> 2010-01-28T18:33:41.635413+01:00 rgf12 rsyslogd: the last error occured
> in /home/rger/proj/rsyslog/rg.conf, line 10:"if $facility == 1 &&
> $priority == 7 then ~"
> 2010-01-28T18:33:41.635477+01:00 rgf12 rsyslogd: warning: selector line
> without actions will be discarded
> 2010-01-28T18:33:41.636170+01:00 rgf12 rsyslogd-2124: CONFIG ERROR:
> could not interpret master config file
> '/home/rger/proj/rsyslog/rg.conf'. [try http://www.rsyslog.com/e/2124 ]

well thats useful at least.  I wonder why I don't see it.

> The syntax error is &&, you need to use "and". Also, the property names
> were incorrect. So the correct line would have been:
> 
> if $syslogfacility == 1 and $syslogseverity == 7 then ~
d'oh

> 
> While I have verified that this line works, you are far better of
> (performance-wise) with the traditional priority filter that you now
> use.
Yes!

Thx!


-- 
------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci ([email protected]) c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer,                        FreeBSD Foundation
Consultant,                       P6M7G8 Inc.
Sr. System Admin,                 Ridecharge Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to