Hello all, and good morning In 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 are> 1mb though. Restarting asterisk fixes it.Thanks, Ejay ... System information [root@localhost asterisk]# du -h /var/log/asterisk 1.3G . 840K ./cdr-csv 956K ./cdr-custom Asterisk 1.2.11 Linux version 2.6.9-42.0.2.ELsmp (gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)) #1 SMP Asterisk 1.2.11 built by buildcentos @ localhost.localdomain on a i686 running Linux localhost*CLI> logger show channels Channel Type Status Configuration ------- ---- ------ ------------- /var/log/asterisk/messages File Enabled - Warning Notice Error Console Enabled - Warning Notice Error
Ejay Hire wrote:> Hello all, and good morning > > In 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 are > >> 1mb though. Restarting asterisk fixes it. >> > > Thanks, > Ejay > > > ... System information > > [root@localhost asterisk]# du -h /var/log/asterisk > 1.3G . > 840K ./cdr-csv > 956K ./cdr-custom > > Asterisk 1.2.11 > Linux version 2.6.9-42.0.2.ELsmp (gcc version 3.4.6 20060404 (Red Hat > 3.4.6-3)) #1 SMP > Asterisk 1.2.11 built by buildcentos @ localhost.localdomain on a i686 > running Linux > localhost*CLI> logger show channels > Channel Type Status Configuration > ------- ---- ------ ------------- > /var/log/asterisk/messages File Enabled - Warning Notice > Error > 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 > >Edit /etc/asterisk/logger.conf then asterisk -rx "logger reload" or do it in cron the dirty way: 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=0x1383A743 sil . infiltrated @ net http://www.infiltrated.net The happiness of society is the end of government. John Adams -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5157 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20061009/6e7084f2/smime.bin
Ejay Hire wrote:> Hello all, and good morning > > In 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 are > >> 1mb though. Restarting asterisk fixes it. >> > > Thanks, > Ejay > > > ... System information > > [root@localhost asterisk]# du -h /var/log/asterisk > 1.3G . > 840K ./cdr-csv > 956K ./cdr-custom > > Asterisk 1.2.11 > Linux version 2.6.9-42.0.2.ELsmp (gcc version 3.4.6 20060404 (Red Hat > 3.4.6-3)) #1 SMP > Asterisk 1.2.11 built by buildcentos @ localhost.localdomain on a i686 > running Linux > localhost*CLI> logger show channels > Channel Type Status Configuration > ------- ---- ------ ------------- > /var/log/asterisk/messages File Enabled - Warning Notice > Error > 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 > >Edit /etc/asterisk/logger.conf then asterisk -rx "logger reload" or in cron the dirty way: 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=0x1383A743 sil . infiltrated @ net http://www.infiltrated.net The happiness of society is the end of government. John Adams -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5157 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20061009/a6031dfb/smime.bin
Ejay Hire wrote:>Hello all, and good morning > >In 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. > >Take a look at the following bug, and see if it applies to you (Monitor() creating 2GB files, causing perpetual SIGXFSZ). http://bugs.digium.com/view.php?id=5984 If so, you should be able to figure out a way to mitigate the problem. Cheers, Nic. -- Nic Bellamy, Head Of Engineering, Vadacom Ltd - http://www.vadacom.co.nz/