Techdivision
asked on
Problem with excessive log files on sbs2008
Hi All
i have the directory C:\inetpub\logs\LogFiles\W 3SVC137222 2313. 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,
i have the directory C:\inetpub\logs\LogFiles\W
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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\LogFil es\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.
at 12:00 /EVERY:Su Forfiles.exe -p C:\WINDOWS\system32\LogFil
This will run every Sunday, and will trim files in that folder older than 30 days. Adjust to suit.
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