Solved

Problem with excessive log files on sbs2008

Posted on 2013-05-23
3
303 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now