<div dir="ltr">Ops! The documentation explaining only to use with templates.<div><br></div><div>Basically, I am looking for how to do the below pseudo-code.</div><div><br></div><div><div> destination {</div><div> if ($R_MIN >= 0 && $R_MIN < 30)</div><div> file("/path/file_00m-15m.log");</div><div> else</div><div> file("/path/file_30m-60m.log");</div><div> endif() </div><div> };</div></div><div><br></div><div>p.s: I need to save the logs in chunks of 30 minutes being 00m-30m & 31m-60m</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">--<div>Jorge Pereira</div></div></div></div>
<br><div class="gmail_quote">On Mon, May 8, 2017 at 7:52 PM, Jorge Pereira <span dir="ltr"><<a href="mailto:jpereiran@gmail.com" target="_blank">jpereiran@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">never mind, I found it.<div><br></div><div><a href="https://www.balabit.com/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/reference-template-functions.html" target="_blank">https://www.balabit.com/<wbr>documents/syslog-ng-ose-<wbr>latest-guides/en/syslog-ng-<wbr>ose-guide-admin/html/<wbr>reference-template-functions.<wbr>html</a><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-8396163469111891983gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">--<div>Jorge Pereira</div></div></div></div><div><div class="h5">
<br><div class="gmail_quote">On Mon, May 8, 2017 at 7:46 PM, Jorge Pereira <span dir="ltr"><<a href="mailto:jpereiran@gmail.com" target="_blank">jpereiran@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">hi team,<div>is it possible to use if() ... else statements on syslog-ng 3.7? I am trying to do something like.</div><div><br></div><div>if ($value >= X)</div><div> ......</div><div>else</div><div> ......<br clear="all"><div><div class="m_-8396163469111891983m_-8682067114702254480gmail_signature"><div dir="ltr">--<div>Jorge Pereira</div></div></div></div>
</div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>