I'm trying to create a script to archive logs for 7 days but still deleted them from the domlogs daily. Has someone already done this? The idea solution would be to modify the CPanel script that deletes them after stats run but I'm not sure if thats protected code by CPanel. The other option would be to disable the delete logs after stats run option and to create a script to copy the logs somewhere else via cron and call the script that CPanel uses to delete the logs without restarting apache. This script would also move the files through directories and eventually delete them, therefore preserving the logs for 7 days. Any ideas?
thewird
thewird