BlackBerryForums.com : Your Number One BlackBerry Community      

»Sponsored Links




Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
st0kes Offline
Knows Where the Search Button Is
 
Posts: 28
Join Date: Jun 2005
Location: UK
Model: 8700
Carrier: Voda UK
Default BES Logs folder - 12-01-2005, 08:28 AM

Hi all,

I have a query about this Logs folder on a BES:

c:\program files\research in motion\blackberry enterprise server\logs

Our BES seems to generate between 80-100Mb of logs every day. It's been left unchecked and the folder had got up to 11Gb ... is there some automatic way to remove old logs and keep this logs folder in check?

Thanks
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
x14 Offline
BlackBerry Extraordinaire
 
x14's Avatar
 
Posts: 1,766
Join Date: Jul 2005
Location: NYC
Model: 8800
Carrier: at&t
Default 12-01-2005, 10:09 AM

We get about 170MB a day on our server with about 475 users. You can move the log directory to a drive with more space.
   
  (#3 (permalink)) Old
BBTechGuy Offline
Talking BlackBerry Encyclopedia
 
Posts: 299
Join Date: May 2005
Model: 7100
Carrier: T-Mobile
Default 12-01-2005, 06:51 PM

Yes you can Auto Delete old logs. Assuming you are on BES 4.0 go into the Logging Tab of the BlackBerry Server Configuration tool.
   
  (#4 (permalink)) Old
st0kes Offline
Knows Where the Search Button Is
 
Posts: 28
Join Date: Jun 2005
Location: UK
Model: 8700
Carrier: Voda UK
Default 12-02-2005, 04:46 AM

That's what I was looking for. Thanks!
   
  (#5 (permalink)) Old
syoulden Offline
Knows Where the Search Button Is
 
Posts: 16
Join Date: Aug 2005
Model: 7230
Default BES Logs - 12-02-2005, 11:02 AM

There is also a recommendation from RIM to not store them on the system drive due to both the size and the activity. We have ours stored in a D:\BESLOGS folder. Also, there are 2 logs that can't be set to delete automatically based on aging (ALRT and MDAT), so it is still necessary to go in and periodically delete the older folders. I have asked for them to allow us to set these as well for auto delete in a future release. I ask others to do the same if you want to keep your administration as simple as possible.
   
  (#6 (permalink)) Old
T-Roy Offline
CrackBerry Addict
 
T-Roy's Avatar
 
Posts: 703
Join Date: Jan 2005
Model: 8800
Carrier: Darth Vader
Default 12-02-2005, 12:29 PM

its pretty easy to script and setup with the Scheduled Tasks built into Windows.
   
  (#7 (permalink)) Old
bradjulum Offline
New Member
 
Posts: 3
Join Date: Mar 2007
Model: 7250
Thumbs down need script to delete Blackberry server log folders - 03-23-2007, 02:43 PM

I am looking for a script to delete Blackberry server log folders every x days.

I found a vbs script that 'works', however, when I run it on the BES I get this error [BES 4.0.4.8]
Error: permission denied
Code: 800A0046

Log in with BESadmin account etc..

Anyone have something like this? Thanks
   
  (#8 (permalink)) Old
st0kes Offline
Knows Where the Search Button Is
 
Posts: 28
Join Date: Jun 2005
Location: UK
Model: 8700
Carrier: Voda UK
Default 03-23-2007, 03:00 PM

You could do it using forfiles in a simple .cmd or .bat file, no need for any complicated vbscript. To delete files older than 6 days for example:

Code:
forfiles /m *.* /D -6 C “cmd /c del @file”
Just change *.* to whatever you want to delete. If you want to delete directories instead of files it will need to be modified a bit.
   
  (#9 (permalink)) Old
bradjulum Offline
New Member
 
Posts: 3
Join Date: Mar 2007
Model: 7250
Default script to delete folders/directories every x day - 03-29-2007, 02:20 PM

still looking for a script to do this? Any ideas? Thanks.
   
  (#10 (permalink)) Old
x14 Offline
BlackBerry Extraordinaire
 
x14's Avatar
 
Posts: 1,766
Join Date: Jul 2005
Location: NYC
Model: 8800
Carrier: at&t
Default 03-30-2007, 10:36 AM

I use this Delete Files Older Than


Domino 7.0.2 FP3/BES 4.1.6
   
  (#11 (permalink)) Old
bradjulum Offline
New Member
 
Posts: 3
Join Date: Mar 2007
Model: 7250
Default blackberry logs - 03-30-2007, 05:52 PM

BES is 4.0 Exchange no such option.
   
  (#12 (permalink)) Old
SoUnCool Offline
Talking BlackBerry Encyclopedia
 
Posts: 264
Join Date: Feb 2007
Location: Toronto
Model: 8800
Carrier: Rogers
Default 05-07-2007, 10:56 AM

what is best practice to delete log files after? 7 days? 14 days? 30 days?
   
  (#13 (permalink)) Old
sbpinbb Offline
Knows Where the Search Button Is
 
Posts: 31
Join Date: Mar 2005
Location: Miami, FL
Model: Pearl
Carrier: T-Mobile
Default 05-11-2007, 03:56 PM

I've just hit a wall on and ran out of file space. I have 3.6 gig of log folders & files going way back. Can I just delete them? Is there any reason to save any of the data?

Any suggestions to the question directly above?
   
  (#14 (permalink)) Old
mahoward Offline
Talking BlackBerry Encyclopedia
 
mahoward's Avatar
 
Posts: 473
Join Date: May 2005
Model: 8700g
Carrier: T-Mobile
Default 05-11-2007, 11:13 PM

RIM tells you to keep for at least 7 days. (But then they also tell you to delete inactive users after 30 days, which I think is a little draconian given overseas travel, maternity leave, etc.)

As for logs, I used to store them indefinitely and back them up to CDROM's when I need to free up drive space. I found that the debug log files for the BES were invaluable in certain situations (many non-BB related) where we needed to track down when emails were sent, were they received, etc.

Unfortunately the log files are just too darn big these days so I purge them after 60 days. A while back I got a request for some info from 62 days previous... oh well couldn't answer that one...


BES 4.1.4.13 on Domino 7.0.2: 1831 Devices
BES 4.1.4.13 on Domino 7.0.3: 148 Devices
   
  (#15 (permalink)) Old
x14 Offline
BlackBerry Extraordinaire
 
x14's Avatar
 
Posts: 1,766
Join Date: Jul 2005
Location: NYC
Model: 8800
Carrier: at&t
Default 05-12-2007, 08:02 AM

Quote:
Originally Posted by SoUnCool View Post
what is best practice to delete log files after? 7 days? 14 days? 30 days?
Minimum would be 7 days because if you call RIM support they will want 3 days of logs.

We have to do monthly user statistic so I have to keep my logs for a minimum of 30 days.


Domino 7.0.2 FP3/BES 4.1.6
   
  (#16 (permalink)) Old
SoUnCool Offline
Talking BlackBerry Encyclopedia
 
Posts: 264
Join Date: Feb 2007
Location: Toronto
Model: 8800
Carrier: Rogers
Default 05-14-2007, 10:35 AM

Quote:
Originally Posted by x14 View Post
Minimum would be 7 days because if you call RIM support they will want 3 days of logs.

We have to do monthly user statistic so I have to keep my logs for a minimum of 30 days.

thanks, got approval from my manager to keep logs for only 30 days,
sorry to interrupt this thread, how are you doing user stats ? you can PM me on this
   
  (#17 (permalink)) Old
aschieman Offline
Thumbs Must Hurt
 
Posts: 108
Join Date: Apr 2005
Location: Toronto, ON
Model: 8100
Carrier: Rogers
Default 05-14-2007, 11:21 AM

Use the BlackBerry Resource Kit to generate user stats. The utilities in the kit parse the log files, which is why the 30 day retension may be required.
   
  (#18 (permalink)) Old
x14 Offline
BlackBerry Extraordinaire
 
x14's Avatar
 
Posts: 1,766
Join Date: Jul 2005
Location: NYC
Model: 8800
Carrier: at&t
Default 05-14-2007, 01:09 PM

Yup, I use the HistoricalStats.exe from the BRK for running statistic to see who's using their BlackBerry or not.


Domino 7.0.2 FP3/BES 4.1.6
   
Closed Thread


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On






Copyright © 2004-2008 BlackBerryNews.com, BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.1