[asterisk-users] Lots and lots of log files
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Mon Oct 9 10:06:26 MST 2006
On Mon, Oct 09, 2006 at 10:52:52AM -0400, J. Oquendo wrote:
> 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 at 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
Huh?
Is it supposed to pick files in the csv dirs?
--
Tzafrir Cohen sip:tzafrir at local.xorcom.com
icq#16849755 iax:tzafrir at local.xorcom.com
+972-50-7952406 jabber:tzafrir at jabber.org
tzafrir.cohen at xorcom.com http://www.xorcom.com
More information about the asterisk-users
mailing list