Setup schedule job to run the following command every day at 1:30 am.
forfiles.exe /p C:\WINDOWS\system32\LogFiles\W3SVCXXXXXXXXXX /s /m *.log* /d -30 /c "cmd /c del /q @path"
It will delete logs older than 30 days
Log pruning on Sharpoint Service 3.0 server
No comments:
Post a Comment