Hey Sergio,<br><br>I'm using log/messages to log opensips messages, then I have in my /etc/logrotate.d/syslog the follow configuracion:<br><br>/var/log/messages {<br> rotate 250<br> size 50M<br> missingok<br>
notifempty<br> postrotate<br> /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true<br> /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true<br>
endscript<br>}<br><br>It works very well to me! In my server 50M gives me arround 1 hour of log.<br><br>I hope it help you.<br><br>Cheers!<br><br><div class="gmail_quote">On 12 December 2010 01:36, sergio <span dir="ltr"><<a href="mailto:sergio@inbox.com">sergio@inbox.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello list<br>
<br>
Does anyone have any suggestions to rotate the log OpenSIPS. My log file is over 7GB<br>
<br>
I am setting up logrotate<br>
<br>
I'm worried about the reload I've noticed is the OpenSIPS restart.<br>
<br>
/etc/logrotate.d/opensips<br>
<br>
/var/log/opensips.log {<br>
missingok<br>
notifempty<br>
sharedscripts<br>
postrotate<br>
/sbin/service opensips reload > /dev/null 2>/dev/null || true<br>
endscript<br>
}<br>
<br>
Thanks<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Wesley Volcov<br>Email: <a href="mailto:wesleyvolcov@gmail.com">wesleyvolcov@gmail.com</a><br>Messenger: <a href="mailto:volcov@live.com">volcov@live.com</a><br>Mobile: +55 11 9989-5348<br>
Website: <a href="http://volcov.blogspot.com">http://volcov.blogspot.com</a><br>