Link to home
Start Free TrialLog in
Avatar of Techdivision
Techdivision

asked on

Problem with excessive log files on sbs2008

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,
ASKER CERTIFIED SOLUTION
Avatar of Techdivision
Techdivision

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ronnypot
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
Avatar of Techdivision
Techdivision

ASKER

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.