Friday, August 13, 2010

Setting up the Log file locations is SharePoint 2010

Health Monitoring alerts in SP 2010 are the good things to happen to us Administrators :)

I like the way now SP 2010 gives you the pop-up alerts in Central Admin, to review and mitigate the same.

The very common issues faced in the MOSS 2007 world, was that of running out of Hard Disk space on the servers. And the weird thing about these errors, at least to the developers, were that they never pointed out to the fact that these were caused due to in-sufficient HDD space. Admins could, well look into the Event logs and see some of them, talking about DB spaces getting full. But yes, as I said, in most cases, it wasn’t obvious looking at the so called “generic error page” ------ don’t remember now ---- was it something like ------ “An error has occurred in your application….”. Not sure, but it was the most hated error page for the MOSS developers :)

So here are the alerts to the rescue. But what next !!!

What should you do when you see these kind of alerts.

Okay, check the message. In high probability, it may tell you these:

- Error message

- its severity

- a short description

- maybe, a remedy

- and the server names.

So now you know what server needs your kind attention.

If the message is about the drives running out of free spaces, then probably here are what your options could be.

#1. Provide a new Logging Directory path in IIS for that server.

#2. Also update the “Trace Log” in the Unified Logging System. You may find this in Central Admin –> Monitoring –> Reporting –> Configure Diagnostic Logging.

Modify the Path “%CommonProgramFiles%\Microsoft Shared\Web Server Extensions\14\LOGS\”

to your new locations for the log files, say, “X:\SP2010LogFiles\”.

Also, do not forget to move all the existing log files that pre-existed on the old locations and were the actual cause of disk full.

Thats it, now the new logs would be created at this new location.

No comments: