<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3562" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=947495003-18082009><FONT face=Arial color=#0000ff
size=2>Hi</FONT></SPAN></DIV>
<DIV><SPAN class=947495003-18082009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=947495003-18082009><FONT face=Arial color=#0000ff size=2>I am
using syslog-ng to collect the logs from different machines. I want to
configure the log rotation policy. I want to know How to configure the log
rotation policy? Does syslog-ng supports it? is there any relation between
syslog-ng and log rotation ?</FONT></SPAN></DIV>
<DIV><SPAN class=947495003-18082009> </SPAN></DIV>
<DIV><SPAN class=947495003-18082009><FONT face=Arial color=#0000ff size=2>I was
searching it on google and I found one example ( given below ). i want to
know what is the role of syslog-ng in log rotation ? I think log rotataion is
not part of syslog-ng features. Can you please suggest me the best way for log
rotation?</FONT></SPAN></DIV>
<DIV><SPAN class=947495003-18082009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=947495003-18082009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=947495003-18082009>content of
/etc/logrotate.d/directadmin:<BR><BR>/var/log/directadmin/*.log
{<BR>weekly<BR>size=1M<BR>rotate=0<BR>create 0644 diradmin
diradmin<BR>sharedscripts<BR>postrotate<BR>find /var/log/directadmin -name
"20*log*" -mtime +7 -exec /bin/rm -f {} \;<BR>find /var/log/directadmin -name
"20*log.?" -exec /bin/rm -f {} \;<BR>endscript<BR>}</SPAN></DIV>
<DIV><SPAN class=947495003-18082009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=947495003-18082009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=947495003-18082009><FONT face=Arial color=#0000ff size=2>-
V</FONT></SPAN></DIV></BODY></HTML>