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 : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] > Sent: Tuesday, July 05, 2005 12:28 PM > To: [email protected] > 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 > [email protected] > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > _______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
