Reduce / Delete Web logs and Stats logs

Discussion in 'General' started by cfuze, Sep 2, 2012.

  1. cfuze

    cfuze New Member

    I have searched but I am not finding exactly what I think I need. I need to be able to delete the stats logs and any other logs that could be taking up space. Right now, it appears I have GB's of logs. In the Stats admin panel, most of the sites have 1.3 GB of logs per month and in total, it appears to be quite large. Does ISPC auto-prune these? If so when and can I do it more often? If not, is it possible to do via a cron? If so, any help in this direction?

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The website log files get compressed (gzip) after 2 days and deleted after 30 days by ISPConfig. If you want to change that you might have to edit the code of the ispconfig cron_daily.php script.
  3. harrythehamster

    harrythehamster New Member


    Sorry to dig up a old post but when you say the log files get deleted after 30 days by ISPConfig are they the log files stored in /var/log/ispconfig/httpd

    All all of the logs deleted as in all 30 days worth or are they rotated do when you have 30 days worth the oldest days date gets deleted and replaced with the current days date so you still have 30 days worth of logs but they get rotated and refreshed each day?

    The reason why I am asking is I want to keep backups of my "visitor access logs" as this is a very important part of the hosting for me.

    Thanks :)
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The logs are rotated daily and deleted after 30 days.
  5. harrythehamster

    harrythehamster New Member

    Thanks for your reply.

    What I wanted to know please is are they 'ALL' deleted after 30 days?


    After 33 days I still have 30 days of logs but the oldest day is deleted?

  6. harrythehamster

    harrythehamster New Member

    Any more information on this problem please as I cannot use ispconfig as I need to have confirmation that I will have at least 30 days worth or visitor access logs at anyone time.

    Are ALL the access logs delteted after 30 days or ids the oldest dat deleted and replaced by the current days logs so keeping atleat 30days worth of logs at anyone time.

    The reason why I need my visitor access logs is I need to monitor them and also provide them as proof of traffic if I am requested to supply them so I need at least 7 days but 30 days at anyone time is perfect.

    Thanks :)
    Last edited: Nov 5, 2012
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Deleting all logs after 30 days would not make any sense, so ISPConfig deltes the oldest log file after 30 days off course.
  8. harrythehamster

    harrythehamster New Member

    That's great! Thanks for your help :)

Share This Page