I am sorry if this is in the doc's somewhere but I couldn't find it. I also could not find the archives for this list. How do I specify more than one priority? Actually a range of priorities. With syslog it is supposed to log that priority and above but I thought I read that it was different with syslog-ng. I seem to recal that you had to specify a range. I just can't remember where I read it. : ) BTW - solved the remote logging thing. It was the server side that was the problem. I changed the rule to accept everything instead of specifying a IP address and it works great now. Thanks everyone for all the help. sim
On Tue, Mar 06, 2001 at 11:38:18AM -0600, Simeon Johnston wrote:
I am sorry if this is in the doc's somewhere but I couldn't find it. I also could not find the archives for this list. How do I specify more than one priority? Actually a range of priorities. With syslog it is supposed to log that priority and above but I thought I read that it was different with syslog-ng. I seem to recal that you had to specify a range. I just can't remember where I read it. : )
To filter on priority<sp?> do this: filter filtername { priority(emerg,alert,crit,err); }; filter filtername { priority(emerg..err); }; Both filters catch only emerg through err log levels. Other possibilities exist obviously. ---------------------------------------------------------------------------- __o Bradley Arlt Email: arlt@cpsc.ucalgary.ca o__ _ \<_ WWW: www.acs.ucalgary.ca/~bdarlt _>/ _ (_)/(_) -Eat well, sleep peacefully, drink lots, and ride like hell. (_)\(_)
Thanks, that works great. sim Brad Arlt wrote:
On Tue, Mar 06, 2001 at 11:38:18AM -0600, Simeon Johnston wrote:
I am sorry if this is in the doc's somewhere but I couldn't find it. I also could not find the archives for this list. How do I specify more than one priority? Actually a range of priorities. With syslog it is supposed to log that priority and above but I thought I read that it was different with syslog-ng. I seem to recal that you had to specify a range. I just can't remember where I read it. : )
To filter on priority<sp?> do this:
filter filtername { priority(emerg,alert,crit,err); };
filter filtername { priority(emerg..err); };
Both filters catch only emerg through err log levels. Other possibilities exist obviously. ---------------------------------------------------------------------------- __o Bradley Arlt Email: arlt@cpsc.ucalgary.ca o__ _ \<_ WWW: www.acs.ucalgary.ca/~bdarlt _>/ _ (_)/(_) -Eat well, sleep peacefully, drink lots, and ride like hell. (_)\(_)
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng
participants (2)
-
Brad Arlt
-
Simeon Johnston