BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 12-01-2005, 08:28 AM   #1
st0kes
Knows Where the Search Button Is
 
Join Date: Jun 2005
Location: UK
Model: 8700
Carrier: Voda UK
Posts: 28
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, 10:09 AM   #2
x14
BlackBerry Extraordinaire
 
Join Date: Jul 2005
Location: NYC
Model: 9800
OS: 6.0.0.546
Carrier: AT&T
Posts: 2,344
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, 06:51 PM   #3
BBTechGuy
Talking BlackBerry Encyclopedia
 
Join Date: May 2005
Model: 7100
Carrier: T-Mobile
Posts: 299
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, 04:46 AM   #4
st0kes
Knows Where the Search Button Is
 
Join Date: Jun 2005
Location: UK
Model: 8700
Carrier: Voda UK
Posts: 28
Default

That's what I was looking for. Thanks!
Offline  
Old 12-02-2005, 11:02 AM   #5
syoulden
Knows Where the Search Button Is
 
Join Date: Aug 2005
Model: 7230
Posts: 16
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, 12:29 PM   #6
T-Roy
CrackBerry Addict
 
T-Roy's Avatar
 
Join Date: Jan 2005
Model: 8800
Carrier: Darth Vader
Posts: 704
Default

its pretty easy to script and setup with the Scheduled Tasks built into Windows.
Offline  
Old 03-23-2007, 01:43 PM   #7
bradjulum
New Member
 
Join Date: Mar 2007
Model: 7250
Posts: 3
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
st0kes
Knows Where the Search Button Is
 
Join Date: Jun 2005
Location: UK
Model: 8700
Carrier: Voda UK
Posts: 28
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
bradjulum
New Member
 
Join Date: Mar 2007
Model: 7250
Posts: 3
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
x14
BlackBerry Extraordinaire
 
Join Date: Jul 2005
Location: NYC
Model: 9800
OS: 6.0.0.546
Carrier: AT&T
Posts: 2,344
Default

I use this Delete Files Older Than
__________________
Exchange 2007/BES 5.0.2 MR2
Offline  
Old 03-30-2007, 04:52 PM   #11
bradjulum
New Member
 
Join Date: Mar 2007
Model: 7250
Posts: 3
Default blackberry logs

BES is 4.0 Exchange no such option.
Offline  
Old 05-07-2007, 09:56 AM   #12
SoUnCool
Talking BlackBerry Encyclopedia
 
Join Date: Feb 2007
Location: Toronto
Model: 9800
Carrier: Rogers
Posts: 319
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
sbpinbb
Knows Where the Search Button Is
 
Join Date: Mar 2005
Location: Miami, FL
Model: Pearl
Carrier: T-Mobile
Posts: 31
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
mahoward
CrackBerry Addict
 
mahoward's Avatar
 
Join Date: May 2005
Model: 8900
Carrier: T-Mobile
Posts: 560
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
x14
BlackBerry Extraordinaire
 
Join Date: Jul 2005
Location: NYC
Model: 9800
OS: 6.0.0.546
Carrier: AT&T
Posts: 2,344
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
SoUnCool
Talking BlackBerry Encyclopedia
 
Join Date: Feb 2007
Location: Toronto
Model: 9800
Carrier: Rogers
Posts: 319
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
aschieman
Thumbs Must Hurt
 
Join Date: Apr 2005
Location: Toronto, ON
Model: 8100
Carrier: Rogers
Posts: 108
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
x14
BlackBerry Extraordinaire
 
Join Date: Jul 2005
Location: NYC
Model: 9800
OS: 6.0.0.546
Carrier: AT&T
Posts: 2,344
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



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


New In Box JOHNSON CONTROLS F61KB-11C Water Flow Switch picture

New In Box JOHNSON CONTROLS F61KB-11C Water Flow Switch

$49.50



New In Box JOHNSON CONTROLS F61KB-11C Water Flow Switch picture

New In Box JOHNSON CONTROLS F61KB-11C Water Flow Switch

$49.50



NEW IN BOX Johnson Controls (240) p10BC-7C Range 3/20 PSIG  picture

NEW IN BOX Johnson Controls (240) p10BC-7C Range 3/20 PSIG

$18.99



Johnson Controls Dx-9100-8454 Metasys Controller.  (Bin 1.1.5) picture

Johnson Controls Dx-9100-8454 Metasys Controller. (Bin 1.1.5)

$23.90



Johnson Controls Metasys IOM2711 Expansion Module picture

Johnson Controls Metasys IOM2711 Expansion Module

$80.00



Johnson Controls MS-FEC1621-0 Programmable Controller - FEC 1621 - Metasys 1611 picture

Johnson Controls MS-FEC1621-0 Programmable Controller - FEC 1621 - Metasys 1611

$79.99







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