BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 12-01-2005, 07:28 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2005
Location: UK
Model: 8700
Carrier: Voda UK
Posts: 28
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default BES Logs folder

Please Login to Remove!

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
Offline  
Old 12-01-2005, 09:09 AM   #2 (permalink)
x14
BlackBerry Extraordinaire
 
Join Date: Jul 2005
Location: NYC
Model: 9800
OS: 6.0.0.546
Carrier: AT&T
Posts: 2,344
Post Thanks: 0
Thanked 17 Times in 16 Posts
Default

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.
Offline  
Old 12-01-2005, 05:51 PM   #3 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: May 2005
Model: 7100
Carrier: T-Mobile
Posts: 299
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Offline  
Old 12-02-2005, 03:46 AM   #4 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2005
Location: UK
Model: 8700
Carrier: Voda UK
Posts: 28
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

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.
Offline  
Old 12-02-2005, 11:29 AM   #6 (permalink)
CrackBerry Addict
 
T-Roy's Avatar
 
Join Date: Jan 2005
Model: 8800
Carrier: Darth Vader
Posts: 704
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

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
Offline  
Old 03-23-2007, 02:00 PM   #8 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2005
Location: UK
Model: 8700
Carrier: Voda UK
Posts: 28
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Offline  
Old 03-29-2007, 01:20 PM   #9 (permalink)
New Member
 
Join Date: Mar 2007
Model: 7250
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default script to delete folders/directories every x day

still looking for a script to do this? Any ideas? Thanks.
Offline  
Old 03-30-2007, 09:36 AM   #10 (permalink)
x14
BlackBerry Extraordinaire
 
Join Date: Jul 2005
Location: NYC
Model: 9800
OS: 6.0.0.546
Carrier: AT&T
Posts: 2,344
Post Thanks: 0
Thanked 17 Times in 16 Posts
Default

I use this Delete Files Older Than
__________________
Exchange 2007/BES 5.0.2 MR2
Offline  
Old 03-30-2007, 04:52 PM   #11 (permalink)
New Member
 
Join Date: Mar 2007
Model: 7250
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default blackberry logs

BES is 4.0 Exchange no such option.
Offline  
Old 05-07-2007, 09:56 AM   #12 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Feb 2007
Location: Toronto
Model: 9800
Carrier: Rogers
Posts: 319
Post Thanks: 2
Thanked 5 Times in 5 Posts
Default

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

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?
Offline  
Old 05-11-2007, 10:13 PM   #14 (permalink)
CrackBerry Addict
 
mahoward's Avatar
 
Join Date: May 2005
Model: 8900
Carrier: T-Mobile
Posts: 560
Post Thanks: 0
Thanked 1 Time in 1 Post
Default

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...
__________________
BESX 4.1.7 on Exchange 2003: 65 Devices
BESX 5.0.3 on Exchange 2003: 2007 Devices
Offline  
Old 05-12-2007, 07:02 AM   #15 (permalink)
x14
BlackBerry Extraordinaire
 
Join Date: Jul 2005
Location: NYC
Model: 9800
OS: 6.0.0.546
Carrier: AT&T
Posts: 2,344
Post Thanks: 0
Thanked 17 Times in 16 Posts
Default

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.
__________________
Exchange 2007/BES 5.0.2 MR2
Offline  
Old 05-14-2007, 09:35 AM   #16 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Feb 2007
Location: Toronto
Model: 9800
Carrier: Rogers
Posts: 319
Post Thanks: 2
Thanked 5 Times in 5 Posts
Default

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
Offline  
Old 05-14-2007, 10:21 AM   #17 (permalink)
Thumbs Must Hurt
 
Join Date: Apr 2005
Location: Toronto, ON
Model: 8100
Carrier: Rogers
Posts: 108
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Offline  
Old 05-14-2007, 12:09 PM   #18 (permalink)
x14
BlackBerry Extraordinaire
 
Join Date: Jul 2005
Location: NYC
Model: 9800
OS: 6.0.0.546
Carrier: AT&T
Posts: 2,344
Post Thanks: 0
Thanked 17 Times in 16 Posts
Default

Yup, I use the HistoricalStats.exe from the BRK for running statistic to see who's using their BlackBerry or not.
__________________
Exchange 2007/BES 5.0.2 MR2
Offline  
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

3M Mainframe Computer Data Tape No. 777 6250 CPI -1 tape - 8 available
$5.0
3M Mainframe Computer Data Tape No. 777 6250 CPI -1 tape - 8 available picture6759 TEKTRONIX VX1411 MAIN FRAME 13 SLOT
$770.0
6759 TEKTRONIX VX1411 MAIN FRAME 13 SLOT picture7846 TEKTRONIX TLA704 LOGIC ANALYZER COLOR PORTABLE MAINFRAME WINDOWS 95
$500.0
7846 TEKTRONIX TLA704 LOGIC ANALYZER COLOR PORTABLE MAINFRAME WINDOWS 95  pictureHP 70000 Series Mainframe #1 Good
$125.0
HP 70000 Series Mainframe #1 Good pictureHP 70000 Series Mainframe #3 Good
$125.0
HP 70000 Series Mainframe #3 Good picture






Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.