LOGS not deleting after rotatoin

Discussion in 'General' started by crypted, Oct 24, 2009.

  1. crypted

    crypted Member

    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
     
  2. kextra1

    kextra1 Member

    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.
     
  3. crypted

    crypted Member

    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.
     
  4. crypted

    crypted Member

    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.
     
    Last edited: Nov 13, 2009
  5. crypted

    crypted Member

    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.
     
  6. falko

    falko Super Moderator Howtoforge Staff

Share This Page