Sandesh,

I'm running 1.4.23.1 right now, created this script for the logs, and 
set it to run as a cron every hour.  Perhaps you can modify it to help you.

#####################################################3
#
#  asterisk_log_rotate.sh
#
#  Removes all log files older than 7 days, then
#  rotates the asterisk debug logs.
#

/usr/bin/find /var/log/asterisk -maxdepth 1 -type f -mtime +7 -exec rm 
-rf {} \;

/usr/sbin/asterisk -rx "logger rotate"

exit 0

-- 
Dean Hoover


On 6/11/2010 11:08 AM, das sandesh wrote:
> Hi All,
>
> We have built an asterisk server (asterisk - 1.4.26.2) where there would
> be around 322 concurrent calls going on, but I can see that full log
> grows rapidly, in one day it reaches to around 10-15 GB if I turn on the
> sip debug and its tedious even by using any commands to get the required
> call from the log if there is any problem. Is there any way of splitting
> the full log into parts through out the day if its reaching 1GB or 2GB,
> so that we can access it?
>
> Thanks so much for your suggestions.
>
> Regards
> Sandesh
>


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to