Log Maintenance and Freeing up Storage

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Log Maintenance and Freeing up Storage

Postby chrism » Sat Feb 28, 2009 11:54 am

Hi Guys,

Any recommendations for log maintenance? I have 2.5 GB of log files under /var/log/astguiclient and it seems to be filling up our storage pretty quickly. Do we need all of these logs for anything? Any recommendations for regular maintenance to clean up things? How can I prevent my drives from becoming full before its too late?

Thanks,

Chris
chrism
 
Posts: 93
Joined: Mon Jan 26, 2009 10:02 am

Postby chrism » Sat Feb 28, 2009 12:01 pm

By the way, I know about disabling logging within vicidial/admin.php. I was curious if there is any maintenance, log cycling or anything else that you might recommend for regular maintenance on a VICIDIAL server.

Thanks again!
chrism
 
Posts: 93
Joined: Mon Jan 26, 2009 10:02 am

Postby mflorell » Sat Feb 28, 2009 12:43 pm

### remove old vicidial logs and asterisk logs more than 2 days old
28 0 * * * /usr/bin/find /var/log/astguiclient -maxdepth 1 -type f -mtime +2 -print | xargs rm -f
29 0 * * * /usr/bin/find /var/log/asterisk -maxdepth 3 -type f -mtime +2 -print | xargs rm -f
30 0 * * * /usr/bin/find / -maxdepth 1 -name "screenlog.0*" -mtime +4 -print | xargs rm -f
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby chrism » Sat Feb 28, 2009 12:59 pm

Thanks, Matt.
chrism
 
Posts: 93
Joined: Mon Jan 26, 2009 10:02 am


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 94 guests