Question on semantics
Hi, Not to mean to be nitpicking, but the original syslog man pages state that priority is defined to be: priority ::= facility . level So shouldn't the config semantics be: filter f_messages { ( level(info) or level(notice) or level(warn) ) and not facility(auth) and not facility(authpriv) and not facility(cron) and not facility(daemon) and not facility(mail) and not facility(news); }; or better yet, filter f_messages { level(info,notice,warn..crit) and not facility(auth,authpriv,cron,daemon,mail,news); }; L L Richi Plana 8^) ,-,-. ,-,-. ,-,-. ,-,-. ,- LL LL Systems Administrator / / \ \ / / \ \ / / \ \ / / \ \ / / LLLLL Mosaic Communications, Inc. \ \ / / \ \ / / \ \ / / \ \ / / LLLLL mailto:richip@mozcom.com `-'-' `-'-' `-'-' `-'-' ------PGP key http://www2.mozcom.com/~richip/richip.asc ----------------
On Sun, 11 Apr 1999, Richi Plana wrote: |o| or better yet, |o| |o| filter f_messages { |o| level(info,notice,warn..crit) and |o| not facility(auth,authpriv,cron,daemon,mail,news); |o| }; I should add that since any given message may only be under one leve and one facility, the comma above taken in a positive sense means a logical OR while taken in the negative sense (using NOT) means a logical AND. So "level(info,notice,...)" means "level(info) OR level(notice) OR ..." while "NOT level(info, notice, ...)" means "NOT level(info) AND NOT level(notice) AND ...". Merely a suggestion. L L Richi Plana 8^) ,-,-. ,-,-. ,-,-. ,-,-. ,- LL LL Systems Administrator / / \ \ / / \ \ / / \ \ / / \ \ / / LLLLL Mosaic Communications, Inc. \ \ / / \ \ / / \ \ / / \ \ / / LLLLL mailto:richip@mozcom.com `-'-' `-'-' `-'-' `-'-' ------PGP key http://www2.mozcom.com/~richip/richip.asc ----------------
Not to mean to be nitpicking, but the original syslog man pages state that priority is defined to be:
priority ::= facility . level
Ok. I'll rename priority to level if you like it better... others?
filter f_messages { level(info,notice,warn..crit) and not facility(auth,authpriv,cron,daemon,mail,news); };
I like this one. I'll drop operators, and use this one instead. -- Bazsi PGP key: http://www.balabit.hu/pgpkey.txt, or finger bazsi@balabit.hu
participants (2)
-
Balazs Scheidler
-
Richi Plana