HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Reduce / Delete Web logs and Stats logs (http://www.howtoforge.com/forums/showthread.php?t=58475)

cfuze 2nd September 2012 19:12

Reduce / Delete Web logs and Stats logs
 
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!

till 3rd September 2012 09:40

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.

harrythehamster 2nd November 2012 18:10

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 :)

till 4th November 2012 14:16

The logs are rotated daily and deleted after 30 days.

harrythehamster 4th November 2012 17:25

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

harrythehamster 5th November 2012 15:56

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 :)

till 5th November 2012 16:33

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

harrythehamster 5th November 2012 17:43

That's great! Thanks for your help :)


All times are GMT +2. The time now is 12:53.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.