Sharepoint Logs not working with Error: Usage log retention limit reached.

Hi All,

SharePoint generates multiple log types. Logs in SharePoint require three basic steps like all other logs: Logging, Processing and  Reporting. To diagnose any unexpected error one must have to open those logging files to know exact error root. Below are the locations where logs are stored:

SharePoint 2007 log files: “c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\LOGS

SharePoint 2010 log files:c:\Program Files\Common Files\Microsoft Shared\web server extensions\14\LOGS

Some tools are available on codeplex which works well as a log viewer tools. I generally use SharePoint Log Viewer 2010 and SharePoint ULS Log Viewer.

From last few weeks suddenly logs stopped working. When I open the last updated log file, I found an error saying: “Usage log retention limit reached.  Some old usage log files have been deleted.”

I have changed the Retention policy from central admin in order to make it work but no luck. These setting you can find at:

Central Admin> Monitoring> Reporting> Configure Diagnostic logging

Then finally after surfing, I found a small which really worked for me. Follow the given steps:
1. Open the command prompt and Navigate to the stsadm directory i.e. cd \Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN

2. When in that directory simply type: “stsadm -o provisionservice -action start -servicetype spwebservice

then restarted iis.

Bingo…..This fixed it

Thanks for your time 🙂


One thought on “Sharepoint Logs not working with Error: Usage log retention limit reached.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s