[Asterisk-Users] How to prevent log files from eating my hard
drive?
Rich Adamson
radamson at routers.com
Tue Jul 5 13:01:49 MST 2005
> Somehow, Asterisk log files are consuming all the space that I have in
> my hard disk... They've already eaten 14GB and are still hungry!! What
> shall I do? I'm not even logging anything in verbose mode!!
>
> Help really appreciated!!
Try this...
cd /var/log/asterisk
ls -al
you should see something like this:
drwxr-xr-x 2 root root 4096 Jul 1 13:32 cdr-csv
drwxr-xr-x 2 root root 4096 May 6 10:24 cdr-custom
-rw-r--r-- 1 root root 64674 Jun 1 06:55 debug
-rw-r--r-- 1 root root 0 May 6 10:15 event_log
-rw-r--r-- 1 root root 341834 Jul 5 13:50 messages
-rw-r--r-- 1 root root 5928 Jul 4 18:34 queue_log
What are the sizes of those files?
If you see the debug file as being large, then look at
/etc/asterisk/logger.conf; you should see something like this:
console => notice,warning,error
messages => notice,warning,error ;,debug
If the messages => line has the debug statement in it, then comment
it out like above and stop restart astersik.
If other log files are large, then post what you have so we
have a clue what you doing.
More information about the asterisk-users
mailing list