> -----Original Message-----
> From: [email protected] [mailto:rsyslog-
> [email protected]] On Behalf Of Philip M. Gollucci
> Sent: Thursday, January 28, 2010 2:36 AM
> To: rsyslog-users
> Subject: Re: [rsyslog] config file help
> 
> Rainer Gerhards wrote:
> > if $facility == 1 && $priority == 7 then ~
> looking up the text values in includes/syslog.h does  work
> 
> user.debug ~
> 
> but
> 
> 1.7 ~

These kind of filters are a different beast (and the traditional ones).
Rsyslog has three types of filters:

- the traditional ones
- property based
- script bases

Functionality increases on the way down, but also performance decreases.
Filters evolved, so each class has the syntax that best fits it. Note that
the if statement above and the traditional filter user.debug is *very*
different when looking from the executed code. User.debug is *much* faster
than starting up the script logic for the same thing. Should have mentioned
that yesterday...

Rainer

> 
> does not.
> 
> --
> -----------------------------------------------------------------------
> -
> 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
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to