<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD><META http-equiv=Content-Type content="text/html; charset=utf-8"><META content="INBOX.COM" name=GENERATOR></HEAD>
<BODY>
<div> Sim ajudou, muito obrigado.<br></div><br><blockquote style="padding-left: 5px; margin-left: 5px; border-left: 2px solid rgb(0, 0, 255); margin-right: 0px;"><div class="msgHeaders">-----Original Message-----<br><b>From:</b> wesleyvolcov@gmail.com<br><b>Sent:</b> Sun, 12 Dec 2010 19:32:15 -0200<br><b>To:</b> users@lists.opensips.org<br><b>Subject:</b> Re: [OpenSIPS-Users] Opensips Logrotate<br><br></div><div class="oldBody"><div>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>
</div></div></blockquote>
</BODY>
</HTML>