Hello.. I am running syslog-ng 1.4.0rc3. I am having a bit of a problem with the '..' operator for priorities. I have a filter : filter authlogs { facility(auth) and priority(emerg..info); }; Error level through info work just fine... but I get nothing above error. However if I expand the '..' I get all the levels between emerg and info. filter authlogs { facility(auth) and priority(emerg,alert,crit,error,warning,notice,info); }; ---- It looks to me like an "array to small" or "counter doesn't go high enough" type problem, but I haven't looked at the source yet (it really is *that* big a deal, its just nice to have to make the config file smaller/prettier) ---------------------------------------------------------------------------- __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. (_)\(_)
I am running syslog-ng 1.4.0rc3.
I am having a bit of a problem with the '..' operator for priorities.
I have a filter :
filter authlogs { facility(auth) and priority(emerg..info); };
Error level through info work just fine... but I get nothing above error.
However if I expand the '..' I get all the levels between emerg and info.
try this patch: diff -u -r1.33 cfg-grammar.y --- cfg-grammar.y 2000/02/25 12:11:42 1.33 +++ cfg-grammar.y 2000/03/01 21:10:26 @@ -533,9 +533,13 @@ r1 = syslog_lookup_level($1); if (r1 == -1) werror("Warning: Unknown priority level %z\n", $1); + else + r1 = sl_levels[r1].value; r2 = syslog_lookup_level($3); if (r2 == -1) werror("Warning: Unknown priority level %z\n", $1); + else + r2 = sl_levels[r2].value; if (r1 != -1 && r2 != -1) $$ = syslog_make_range(r1, r2); else -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 url: http://www.balabit.hu/pgpkey.txt
participants (2)
-
Balazs Scheidler
-
Brad Arlt