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? Thanks!
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.
Hello 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
Thanks for your reply. What I wanted to know please is are they 'ALL' deleted after 30 days? or After 33 days I still have 30 days of logs but the oldest day is deleted? Thanks
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
Deleting all logs after 30 days would not make any sense, so ISPConfig deltes the oldest log file after 30 days off course.