ISPConfig has not deleted logs in three years I have just learned. We have log files over 1GB on some domains and it is causing major issues with MAIL delivery due to quotas. How can I get ISPCONFIG to delete logs say every 7 days, or every month, or something at least so that this doesn't happen? CRONTAB: 0 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null 59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php &> /dev/null 59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php &> /dev/null 59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/cleanup.php &> /dev/null 0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null
Good question Good question, I have the same problem with mail logs in /var/log for system logs. I was thinking about getting my cousin to write a script. What operating system or distro do you have ispconfig installed on? I will do my best to help.
I'm running it on CentOS 5.3 right now (will yum update to 5.4 after it's been out for a few more weeks)... Anyway yeah it's a shock to see those directories so large as it was supposedly rotating logs out and deleting every so often I thought.
Any thoughts out there on resolving the no-deletion-of-logs? Please I would like help resolving this. It's not deleting LOGS from the web/logs/ directory. I have logs that are three years old and greater. These are taking up at least 8GB of space total for just 2007 alone.
Please anyone out there, I would like some assistance. I have a lot of space taken up by previous years logs not deleting off the system.
ISPConfig 2 does not delete these logs. But it's possible to write a script that does this, e.g. with the help of the find command. The script /usr/local/sbin/mysqlbackup.sh on http://www.howtoforge.com/back_up_mysql_dbs_without_interruptions should give you the idea how to do something like this.