I am looking for a script that would rotate weblogs on apache. I'd like to schedule the script over cron so it could run periodically and rotate access_log and error_log for all websites on the server.
install and configure logrotate
Another good tool is Cronolog
Will produce and rotate logs automaticlly to: