Thanks Dean for the information,<br><br>Currently we have the log rotate which removes the log older than 5 days. <br><br>Thanks<br>Sandesh<br><br><div class="gmail_quote">On Fri, Jun 11, 2010 at 11:19 AM, Dean Hoover <span dir="ltr"><<a href="mailto:dhoover@centonline.com" target="_blank">dhoover@centonline.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Sandesh,<br>
<br>
I'm running 1.4.23.1 right now, created this script for the logs, and<br>
set it to run as a cron every hour. Perhaps you can modify it to help you.<br>
<br>
#####################################################3<br>
#<br>
# asterisk_log_rotate.sh<br>
#<br>
# Removes all log files older than 7 days, then<br>
# rotates the asterisk debug logs.<br>
#<br>
<br>
/usr/bin/find /var/log/asterisk -maxdepth 1 -type f -mtime +7 -exec rm<br>
-rf {} \;<br>
<br>
/usr/sbin/asterisk -rx "logger rotate"<br>
<br>
exit 0<br>
<br>
--<br>
Dean Hoover<br>
<div><div></div><div><br>
<br>
On 6/11/2010 11:08 AM, das sandesh wrote:<br>
> Hi All,<br>
><br>
> We have built an asterisk server (asterisk - 1.4.26.2) where there would<br>
> be around 322 concurrent calls going on, but I can see that full log<br>
> grows rapidly, in one day it reaches to around 10-15 GB if I turn on the<br>
> sip debug and its tedious even by using any commands to get the required<br>
> call from the log if there is any problem. Is there any way of splitting<br>
> the full log into parts through out the day if its reaching 1GB or 2GB,<br>
> so that we can access it?<br>
><br>
> Thanks so much for your suggestions.<br>
><br>
> Regards<br>
> Sandesh<br>
><br>
<br>
<br>
</div></div>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br>