[syslog-ng] Problems with set() / condition() ?
Jorge Pereira
jpereiran at gmail.com
Thu Jul 13 03:26:57 UTC 2017
Hi List,
I am trying to use the below set() + condition()
rewrite {
set("$(* $(/ $R_MIN 5) 5)", value("min_slice"));
set("0${min_slice}", value("min5"), condition("min_slice" <= "9"));
set("${min_slice}", value("min5"), condition("min_slice" >= "10"));
# final macro, e.g: www.mytest.com_20170417-1001PM-ng_lua.log.gz
set("${YEAR}${MONTH}${DAY}-${HOUR12}${min5}${AMPM}",
value("logfmt_file"));
set("${YEAR}${MONTH}${DAY}/${HOUR12}${min5}${AMPM}",
value("logfmt_dir"));
};
But, does not work with R_MIN values around 1 ~ 9 then never execute the
second set(... *condition("min_slice" <= "9")*) statement. Has somebody
idea?
p.s: I am using the syslog-ng 3.7.3
--
Jorge Pereira
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20170713/10f1c4ed/attachment.html>
More information about the syslog-ng
mailing list