<div dir="auto">I mean syslog-ng 1.6.8</div><div class="gmail_extra"><br><div class="gmail_quote">On May 30, 2018 22:54, "Balazs Scheidler" <<a href="mailto:bazsi77@gmail.com">bazsi77@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">syslog-ng does have template support, it just doesnt support braces, which came later.<div dir="auto"><br></div><div dir="auto">Just write $YEAR instead of ${YEAR}</div></div><div class="gmail_extra"><br><div class="gmail_quote">On May 30, 2018 09:41, "Gergely Nagy" <<a href="mailto:algernon@balabit.com" target="_blank">algernon@balabit.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">>>>>> "Amin" == Amin, Jitesh CTR DISA JSP (US) <<a href="mailto:jitesh.amin.ctr@mail.mil" target="_blank">jitesh.amin.ctr@mail.mil</a>> writes:<br>
<br>
    Amin> Let me ask this, with the following config = destination<br>
    Amin> syslog { file("/var/log/syslog-${YEAR}-<wbr>${MONTH}-${DAY}.log");<br>
    Amin> };<br>
<br>
    Amin> It created new file and started writing to it (versus creating<br>
    Amin> new syslog.log). Question, if we plan to accept this for now,<br>
    Amin> with above config, would it create a new file ever day with<br>
    Amin> following file names or no it would not work with v1.6.8<br>
<br>
With syslog-ng 1.6.8, it would not create a new file every day, and<br>
would continue writing to syslog-{YEAR}-{MONTH}-{DAY}.lo<wbr>g. With newer<br>
versions, it would create files like `syslog-2018-05-30.log`. No `.0`,<br>
`.1` or the like would be appended. That's a convention of logrotate.<br>
With syslog-ng, you get filenames that match the template, they will<br>
have nothing appended or prepended that is not in the filename template.<br>
<br>
-- <br>
|8]<br>
______________________________<wbr>______________________________<wbr>__________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailm<wbr>an/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support<wbr>/documentation/?product=<wbr>syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/sy<wbr>slog-ng-faq</a><br>
<br>
</blockquote></div></div>
<br>______________________________<wbr>______________________________<wbr>__________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/<wbr>mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/<wbr>support/documentation/?<wbr>product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/<wbr>syslog-ng-faq</a><br>
<br>
<br></blockquote></div></div>