Welcome to TechNet Blogs Sign in | Join | Help

The Official SBS Blog

The official blog for Small Business Server (SBS) support and product group communications.

News

  • Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of Microsoft. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
Reclaiming Disk Space Lost to IIS Logs on SBS 2003 and SBS 2008

[Today's post comes to us courtesy of Justin Crosby and Wayne McIntyre]

Today we are going to discuss an SBS "house cleaning" tip.  If you have been running SBS 2003/2008 for awhile you may be using a lot of disk space to store old IIS logs.  This is especially true if your clients are heavy OWA, ActiveSync, RPC over HTTP, or SharePoint users.  A recent customer of mine had files dating back to 2004 and was using almost 2 Gigabytes of hard drive space to store these old logs.

To reclaim this space all you need to do is to delete the old IIS log files.  Please be sure to back them up before deleting, just in case you need the logs in the future.  I usually try to keep a week’s worth of logs and delete everything older than that.  The logs will be in folders underneath C:\Windows\System32\LogFiles\ in SBS 2003 and C:\inetpub\logs\LogFiles in SBS 2008 by default.   Additionally there is a Remote Web Workplace log stored in SBS 2008 in the following location which can grow rather large C:\Program Files\Windows Small Business Server\Logs\WebWorkplace.  If your log files are not stored in the default location, you can run the below command to determine the log file directory configured in IIS.

clip_image002

Note: It is inadvisable to search your hard drive(s) for *.log and delete all that you find.  Many programs actively use information stored in .log files, such as Exchange, and deleting the file may cause issues including potential data loss. 

Posted: Thursday, February 28, 2008 2:54 PM by SBS Bloggers

Comments

Mike Gibbs said:

This is an excellent tip. Do you have any more hidden gems like this one?

# February 29, 2008 1:16 PM

Kevin Weilbacher said:

I find it funny you're just now getting around to telling people about IIS log build up. I posted a method for doing that on my blog site back in 2006:

http://msmvps.com/blogs/kwsupport/archive/2006/11/24/cleanup-log-files.aspx

# February 29, 2008 2:35 PM

The Official Blog of the SBS "Diva" said:

The Official SBS Blog : Reclaiming Disk Space Lost to IIS Logs on SBS 2003: http://blogs.technet.com

# February 29, 2008 10:18 PM

MVPs said:

The Official SBS Blog : Reclaiming Disk Space Lost to IIS Logs on SBS 2003: http://blogs.technet.com

# February 29, 2008 11:14 PM

Ganesh Kumar said:

"I find it funny you're just now getting around to telling people about IIS log build up. I posted a method for doing that on my blog site back in 2006"

Yeah!  Listen to Kevoh!  He will be the sole arbitter of what can and cannot be posted in all technical blogs on the internets going forward.  Think of the great inconveneince caused to his 7 or 8 regular readers when they had to read about a similar issue twice in the last 2 years.  The humanity.

# March 7, 2008 1:02 AM
New Comments to this post are disabled
Page view tracker