Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd September 2012, 19:12
cfuze cfuze is offline
Junior Member
 
Join Date: May 2012
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
Default 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!
Reply With Quote
Sponsored Links
  #2  
Old 3rd September 2012, 09:40
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,177
Thanks: 829
Thanked 5,414 Times in 4,257 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
cfuze (18th September 2012)
  #3  
Old 2nd November 2012, 18:10
harrythehamster harrythehamster is offline
Junior Member
 
Join Date: Oct 2012
Posts: 20
Thanks: 7
Thanked 1 Time in 1 Post
Default

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
Reply With Quote
  #4  
Old 4th November 2012, 14:16
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,177
Thanks: 829
Thanked 5,414 Times in 4,257 Posts
Default

The logs are rotated daily and deleted after 30 days.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 4th November 2012, 17:25
harrythehamster harrythehamster is offline
Junior Member
 
Join Date: Oct 2012
Posts: 20
Thanks: 7
Thanked 1 Time in 1 Post
Default

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
Reply With Quote
  #6  
Old 5th November 2012, 15:56
harrythehamster harrythehamster is offline
Junior Member
 
Join Date: Oct 2012
Posts: 20
Thanks: 7
Thanked 1 Time in 1 Post
Default

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 by harrythehamster; 5th November 2012 at 15:59.
Reply With Quote
  #7  
Old 5th November 2012, 16:33
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,177
Thanks: 829
Thanked 5,414 Times in 4,257 Posts
Default

Deleting all logs after 30 days would not make any sense, so ISPConfig deltes the oldest log file after 30 days off course.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
harrythehamster (5th November 2012)
  #8  
Old 5th November 2012, 17:43
harrythehamster harrythehamster is offline
Junior Member
 
Join Date: Oct 2012
Posts: 20
Thanks: 7
Thanked 1 Time in 1 Post
 
Default

That's great! Thanks for your help
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPconfig is not processing apache logs: the web Traffic overview and stats are gone KingBeto General 12 15th January 2010 18:00
After accidental file delete - stats not being updated Been Told General 4 5th August 2009 10:26


All times are GMT +2. The time now is 02:45.


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