Welcome to Port3101.org : Your BES Connection Mark forums read | View Forum Leaders
Port3101.org : Your BES Connection



Reply
 
  #1 (permalink)  
Old 12-17-2010, 06:44 AM
BES Administrator
 
Join Date: Feb 2010
Posts: 17
Default Bes Log

Hello,
we have migrated to BES 5.0 from 4.6.
We have set the option
Maximum age of daily log files: 7
under the "component view" -> "logging" -> "bes instance"
sure that log files will be deleted after 7 days from their creation.
But it doesn't work
In the "log" directories we find directories old more of 7 days with log files inside.
Why it doesn't delete the log files and directories ?
Which options we have to set ?
Thanks
Regards
Corrado
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-17-2010, 09:46 AM
BES Activated
 
Join Date: Aug 2009
Location: Munich
Posts: 3
Default

None. Folders will not be deleted. And some files won't, too. You have to wipe the rest of the content with a batch or something similar.
Reply With Quote
  #3 (permalink)  
Old 12-17-2010, 10:01 AM
BES Administrator
 
Join Date: Feb 2010
Posts: 17
Default

Quote:
Originally Posted by bytelight View Post
None. Folders will not be deleted. And some files won't, too. You have to wipe the rest of the content with a batch or something similar.
Thank you for your reply.
So it isn't a bad function of bes server... we will have to work to solve the problem.
Thanks
Reply With Quote
  #4 (permalink)  
Old 12-17-2010, 01:22 PM
BES Administrator
 
Join Date: Jun 2010
Location: In the woods
Posts: 28
Default

Quote:
Originally Posted by forino View Post
Thank you for your reply.
So it isn't a bad function of bes server... we will have to work to solve the problem.
Thanks
Also note that if you had 14 days worth of logs in there already and set it to delete after 7 days, it only takes in effect 7 days after it was set so any logs already in the folder will not be removed automatically, it's by design.
Reply With Quote
  #5 (permalink)  
Old 01-23-2011, 03:07 AM
BES Administrator
 
Join Date: Jun 2009
Location: In the Desert
Posts: 5
Default

My 2 cents I personally like to keep logs for auditing requests. If you zip the daily folders by month it greatly reduces the space used up by the logs. And you can store the zipped logs on a network share or other form of media.
Reply With Quote
  #6 (permalink)  
Old 01-25-2011, 12:55 PM
BES Activated
 
Join Date: Sep 2010
Location: UK
Posts: 6
Default Script

Hi Forino.

As I had the same issue with my install I use a VB script to do my cleanups.

I have attached the code in a TXT file.

I must admit its not my code. It was taken from another post in the Scripts forum.

The log retention is set to -7 days.

I have a schedulled task running every sunday which deletes all logs which are older than 7 days. So on the sunday at 23:00 before the task runs I have 2 weeks worth of full logs. at 00:01 on Monday morning I have only Sunday to Sunday logs with 1 full week of logs left for troubleshooting.

Hope this helps.
Attached Files
File Type: txt deletelogs.txt (1.9 KB, 204 views)
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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:50 PM.
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, vBulletin Solutions, Inc.


 

SEO by vBSEO 3.3.2 PL2