[Asterisk-Users] How to prevent log files from eating my harddrive?

Thierry Wehr wehr at japet.com
Tue Jul 5 13:52:59 MST 2005


Have a look in /etc/logrotate.d and use apache file for example
Then have a look at /etc/logrotate.conf and chose  for example day with 30
days

You won't have to do anything, logrotate will do the job for you

And all will be fine

Best regards
Thierry

> -----Message d'origine-----
> De : asterisk-users-bounces at lists.digium.com 
> [mailto:asterisk-users-bounces at lists.digium.com] De la part 
> de Michael Stahl
> Envoyé : mardi 5 juillet 2005 22:04
> À : Asterisk Users Mailing List - Non-Commercial Discussion
> Objet : RE: [Asterisk-Users] How to prevent log files from 
> eating my harddrive?
> 
> Use a script to rotate the logs every night (by cron).  If 
> you need one, I'll post what I have.
> 
> That's only have the solution of course...you would have to 
> write another script to delete logs > X days old.
> 
> Anyone have one of those handy?
> 
> -----Original Message-----
> From: Leo Burd [mailto:leob at media.mit.edu]
> Sent: Tuesday, July 05, 2005 12:28 PM
> To: asterisk-users at lists.digium.com
> Subject: [Asterisk-Users] How to prevent log files from 
> eating my hard drive?
> 
> Hello there,
> 
> 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!!
> 
> Best,
> 
> Leo
> 
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 




More information about the asterisk-users mailing list