Solved

Problem with excessive log files on sbs2008

Posted on 2013-05-23
3
307 Views
Last Modified: 2013-05-28
Hi All

i have the directory C:\inetpub\logs\LogFiles\W3SVC1372222313. it has grown in size to about 400GB. Where can  I turn the logging down so it doesn't grow to such a high number,
0
Comment
Question by:Techdivision
  • 2
3 Comments
 

Accepted Solution

by:
Techdivision earned 0 total points
ID: 39191089
This solution works. I have just tested.

I trim mine with the following command which creates a scheduled task to do it :-

at 12:00 /EVERY:Su Forfiles.exe -p C:\WINDOWS\system32\LogFiles\W3SVC1 -m *.log -d -30 -c \"Cmd.exe /C del @path\"

This will run every Sunday, and will trim files in that folder older than 30 days.  Adjust to suit.
0
 
LVL 26

Expert Comment

by:ronnypot
ID: 39191091
Hi,

It is known SBS 2008 is very log file consumptive, there is a Technet Blog post about reclaiming disk space, this might help:

http://blogs.technet.com/b/sbs/archive/2010/03/02/recovering-disk-space-on-the-c-drive-in-small-business-server-2008.aspx
0
 

Author Closing Comment

by:Techdivision
ID: 39200643
I trim mine with the following command which creates a scheduled task to do it :-

at 12:00 /EVERY:Su Forfiles.exe -p C:\WINDOWS\system32\LogFiles\W3SVC1 -m *.log -d -30 -c \"Cmd.exe /C del @path\"

This will run every Sunday, and will trim files in that folder older than 30 days.  Adjust to suit.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A procedure for exporting installed hotfix details of remote computers using powershell
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question