Web Hosting Talk







View Full Version : Log Rotation..


nousername
07-15-2002, 09:54 PM
I need rotation on apache's "access_log" and "error_log"... My logs are going up by 28 megs a day.. anyone know a script that can do that for me?

Thanks

Jeffyt
07-15-2002, 10:14 PM
There is a program called "logrotate" that should suffice.

Regards,

Jeff

dbzgod
07-15-2002, 10:29 PM
Or a cronjob....cant quite remember how to set one up to rotate the logs.

nousername
07-15-2002, 11:41 PM
Ok, i did a little research and learnt how to rotate em :), using cron. Thanks