<div dir="ltr">Hi List,<div><br></div><div>I am trying to use the below set() + condition()</div><div><br></div><div><div> rewrite {</div><div> set("$(* $(/ $R_MIN 5) 5)", value("min_slice"));</div><div> set("0${min_slice}", value("min5"), condition("min_slice" <= "9"));</div><div> set("${min_slice}", value("min5"), condition("min_slice" >= "10"));</div><div><br></div><div> # final macro, e.g: www.mytest.com_20170417-1001PM-ng_lua.log.gz</div><div> set("${YEAR}${MONTH}${DAY}-${HOUR12}${min5}${AMPM}", value("logfmt_file"));</div><div> set("${YEAR}${MONTH}${DAY}/${HOUR12}${min5}${AMPM}", value("logfmt_dir"));</div><div> }; </div><div><br></div><div>But, does not work with R_MIN values around 1 ~ 9 then never execute the second set(... <b>condition("min_slice" <= "9")</b>) statement. Has somebody idea?</div><div><br></div><div>p.s: I am using the syslog-ng 3.7.3</div><div><br></div><div><div class="gmail_signature"><div dir="ltr">--<div>Jorge Pereira</div></div></div></div>
</div></div>