[syslog-ng] (U) [Non-DoD Source] Re: Rotate syslog-ng log files

Gergely Nagy algernon at balabit.com
Wed May 30 13:42:23 UTC 2018


>>>>> "Amin" == Amin, Jitesh CTR DISA JSP (US) <jitesh.amin.ctr at mail.mil> writes:

    Amin> Let me ask this, with the following config = destination
    Amin> syslog { file("/var/log/syslog-${YEAR}-${MONTH}-${DAY}.log");
    Amin> };

    Amin> It created new file and started writing to it (versus creating
    Amin> new syslog.log). Question, if we plan to accept this for now,
    Amin> with above config, would it create a new file ever day with
    Amin> following file names or no it would not work with v1.6.8

With syslog-ng 1.6.8, it would not create a new file every day, and
would continue writing to syslog-{YEAR}-{MONTH}-{DAY}.log. With newer
versions, it would create files like `syslog-2018-05-30.log`. No `.0`,
`.1` or the like would be appended. That's a convention of logrotate.
With syslog-ng, you get filenames that match the template, they will
have nothing appended or prepended that is not in the filename template.

-- 
|8]


More information about the syslog-ng mailing list