Welcome to TechNet Blogs Sign in | Join | Help

The Official SBS Blog

The official blog for 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

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

Today we are going to discuss an SBS "house cleaning" tip.  If you have been running SBS 2003 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 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 weeks worth of logs and delete everything older than that.  The logs will be in folders underneath C:\Windows\System32\LogFiles\ by default.  The two largest folders on a typical SBS server will be W3SVC1 for the default web site and W3SVC4 for SharePoint (CompanyWeb).  If you have created additional web sites you will need to check those site's folders as well.

To check to see if logging is enabled, you will need to open up IIS Manager from Administrative Tools.  From there right-click on a web site (Default Web Site for example) and choose Properties.  Select the Web Site tab.  You should see something similar to the following:

image

If Enable logging is checked, then logging is enabled.  To control where the log is stored, by default the logs are stored in C:\Windows\System32\LogFiles\, click the Properties button.  You will get the screen seen below:

image

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. 

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