<div dir="ltr">yes something similar .. but instead of the day, month can we do it based on the size. say once it crosses 1 GB , archive it and have a new log file created. Can we do this from syslog-ng ?</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, May 10, 2013 at 3:37 PM, Stuart Green <span dir="ltr"><<a href="mailto:stuart.green@doccentrics.com" target="_blank">stuart.green@doccentrics.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
If you use something like:<br>
<br>
destination hosts { <br>
file("/var/log/syslog-ng/$HOST/$YEAR.$MONTH.$DAY/$FACILITY"<br>
<br>
It would rotate the client files daily by creating a new folder
within the year,month, but you'd need to clear up the files yourself
if you're not intending on keeping them, is that what you are after?<br>
<br>
[ Stu ]<div class="im"><br>
<br>
<div>On 10/05/2013 10:27, Rakesh
Rajasekharan wrote:<br>
</div>
</div><blockquote type="cite"><div class="im">
<div dir="ltr">I am using the syslog-ng 3.3.7 version. My question
is , can we manage log rotation within the syslog-ng conf file ?
<div>Please advice</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div><pre>______________________________________________________________________________
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a>
</pre>
</blockquote>
<br>
</div>
<br>______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
<br></blockquote></div><br></div>