Wednesday, September 9, 2015

Finding a Correlation ID error information in SharePoint

One frustrating error SharePoint users will occasionally experience is the dreaded 'red X' with a cryptic correlation ID error. When that happens, the SharePoint Administrator must perform the equally frustrating task of looking through the logs to find the cause of the error.


Wouldn’t it be nice if there was a command that will search the log files for the correlation ID?  The command Merge-SPlogfile will automatically search the logs for the error ID. Better than that, the command will search ALL the servers in the farm and place a log file on the server that you will the command. 

Here is an example of the the Merge-SPlogfile command:
Merge-SPLogFile –Path –Correlation <Guid>

Example:

Merge-SPlogfile –Path D:\log.log –Correlation ba05e237-0680-403a-b9f6-e49f96ac55d4
(That will place a .log file on the D drive of the server which will only contain errors with the correlation ID.)

This one line of command will help to find the cause of the error quickly, this command will search in all the servers in the farm and place a log file on the server.


No comments:

Post a Comment