Web Hosting Talk







View Full Version : managing logs


carpman
11-01-2001, 06:44 AM
Hello, i am trying set up my cpanel/whm server so i can manange my logs.

I know that with standard install website logs are rotated at end of month, but i also have some domians setup with logs in home/logs as per:
http://i4net.tv/marticle/get.php?action=getarticle&articleid=22

What i would like to do is tar up these home/logs/ logs at the end of each month and clear logs ready for new month.

Also how do other manange system logs?

/usr/local/apache/logs/error_log
/usr/local/apache/logs/access_log
/var/log/
/var/spool/exim/input/
/var/spool/exim/msglog/

are these rotated? is it possible to get important logs tarred and mailed on regular basis?

cheers

Madman2020
11-02-2001, 12:24 PM
You could add these to your logrotate config. See:

/etc/logrotate.conf
/etc/logrotate.d

carpman
11-02-2001, 01:15 PM
Thanks for reply.
would these work even if you have logs in different places?


Originally posted by Madman2020
You could add these to your logrotate config. See:

/etc/logrotate.conf
/etc/logrotate.d