Ejay Hire wrote:
Edit /etc/asterisk/logger.conf then asterisk -rx "logger reload" or in cron the dirty way:Hello all, and good morningIn my /var/log/asterisk directory I have 492,018 log files, most of which are empty. event_log.XXX queue_log.XXX messages.XXX where XXX is an integer. I removed them all and restarted asterisk a few days ago, but they came back. This morning I turned off event and queue logging, but I would prefer to have the messages log. I didn't see an entry for theis in logrotate. The root issue behind this is that I get a message about a signal that the log files are too big, and asterisk stops working. None of my log files are1mb though. Restarting asterisk fixes it.Thanks, Ejay... System information[EMAIL PROTECTED] asterisk]# du -h /var/log/asterisk 1.3G . 840K ./cdr-csv 956K ./cdr-customAsterisk 1.2.11 Linux version 2.6.9-42.0.2.ELsmp (gcc version 3.4.6 20060404 (Red Hat3.4.6-3)) #1 SMP Asterisk 1.2.11 built by buildcentos @ localhost.localdomain on a i686running Linux localhost*CLI> logger show channels Channel Type Status Configuration------- ---- ------ ------------- /var/log/asterisk/messages File Enabled - Warning NoticeError Console Enabled - Warning Notice Error_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
0 * * * * ls -ltha /var/log/asterisk/|awk '{print $5,$9}'|grep "0 "|grep -v [1-9]|xargs rm -rf
-- ==================================================== J. Oquendo http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x1383A743sil . infiltrated @ net http://www.infiltrated.net
The happiness of society is the end of government. John Adams
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
