<div dir="auto"><div dir="auto"><br></div><div dir="auto"><p style="font-family:sans-serif;font-size:13.696px">So according to<u></u><u></u></p><p style="font-family:sans-serif;font-size:13.696px"><u></u> <u></u></p><p style="font-family:sans-serif;font-size:13.696px"><a href="https://www.balabit.com/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/example-logrotate.html" style="text-decoration-line:none;color:rgb(66,133,244)">https://www.balabit.com/<wbr>documents/syslog-ng-ose-<wbr>latest-guides/en/syslog-ng-<wbr>ose-guide-admin/html/example-<wbr>logrotate.html</a><u></u><u></u></p><p style="font-family:sans-serif;font-size:13.696px"><u></u> <u></u></p><pre style="white-space:pre-wrap;margin:0in 0in 0.0001pt;font-size:10pt;font-family:"courier new"">using this format:  destination d_sorted { file("/var/log/remote/${HOST}/<wbr>${YEAR}_${MONTH}_${DAY}.log" create-dirs(yes)); };<u></u><u></u></pre><p style="font-family:sans-serif;font-size:13.696px"><u></u> <u></u></p><p style="font-family:sans-serif;font-size:13.696px"><u></u> <u></u></p><p style="font-family:sans-serif;font-size:13.696px">I can create logs folders and files based on the timestamp.  And this is working nicely for us... With a caveat.<u></u></p><p style="font-family:sans-serif;font-size:13.696px"><u></u> <u></u></p><p style="font-family:sans-serif;font-size:13.696px">We are getting a TON of logs, so we want to rotate hourly and archive quickly.<u></u><u></u></p><p style="font-family:sans-serif;font-size:13.696px"><u></u> <u></u></p><p style="font-family:sans-serif;font-size:13.696px">My config is this:  destination d_msg { file("/var/log/message_${YEAR}<wbr>_${MONTH}_${DAY}_${HOUR}.log")<wbr>; };<u></u><u></u></p><p style="font-family:sans-serif;font-size:13.696px"><u></u> <u></u></p><p style="font-family:sans-serif;font-size:13.696px">But instead of creating one file per hour according to the time the event is received, it is creating files based on the timestamp of the event (which, while useful for discovering and tracking down machines with time synch problems, is not so useful for managing log files on the syslog server).<u></u><u></u></p><p style="font-family:sans-serif;font-size:13.696px"><u></u> <u></u></p><p style="font-family:sans-serif;font-size:13.696px">Is there a way to make it create files based on the time the event is received and NOT the timestamp of the event?<u></u><u></u></p><p style="font-family:sans-serif;font-size:13.696px"><u></u> <u></u></p><p style="font-family:sans-serif;font-size:13.696px">Thanks.<u></u><u></u></p><p style="font-family:sans-serif;font-size:13.696px"><u></u> </p></div></div>