> -----Original Message-----
> From: [email protected] [mailto:rsyslog-
> [email protected]] On Behalf Of Philip M. Gollucci
> Sent: Wednesday, January 27, 2010 8:17 PM
> To: rsyslog-users
> Subject: [rsyslog] config file help
> 
> rsyslog.conf:
> 
> ...
> if $facility == '1' && $priority == '7' then ~

I don't have the code at hand right now, but I guess the codes must be
numeric:

if $facility == 1 && $priority == 7 then ~

The scripting engine may not spit out a meaningful error message - it is in
its infancy with no time til today to complete it...

Rainer

> *.* :ommysql:localhost,logs,logs,logs;db_std ## not actual l/p
> EOF
> 
> select facility,priority, count(1) as c
> from syslogs
> where facility = 1
> and priority = 7
> group by facility,priority;
> +----------+----------+------+
> | facility | priority | c    |
> +----------+----------+------+
> |        1 |        7 | 1637 |
> +----------+----------+------+
> 1 row in set (0.00 sec)
> 
> am I missing something ? I just want to throw it away.
> 
> 
> 
> --
> -----------------------------------------------------------------------
> -
> 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