Friday, August 21, 2015

How to Use ULS Log Viewer to Analyse SharePoint Errors

ULS logs are unavoidable in SharePoint administration and support. This post describes the basic usage of ULS log viewer to reveal actual error message in SharePoint 2013 environment.

Scenario: You got an E-mail from end-user saying: They received a typical "An unexpected error has occurred." page with some GUID, time stamp, etc. User forward the error screenshot to SharePoint support team.

How to get the detailed error message using ULS Viewer?
Here is how to use SharePoint ULS viewer.
  1. To start with, Download the ULS Viewer tool to your SharePoint Web front end server. Its a tiny application, no installation is required.
  2. Open ULS Viewer application. Click on File Menu >> Open From >> File. This opens the default LOGS folder of your SharePoint hive, "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS".  
    uls viewer sharepoint 2013 tutorial
  3. Select log file(s) based on the time stamp from the error page. You can select multiple Log files at once. 
  4. Once logs files are opened, apply the filter with your correlation GUID by clicking "Filter" icon from the toolbar. Here is mine. Set the correlation value to the GUID we received in the error screen.
    uls viewer sharepoint 2013 correlation id
  5. This filters all detailed error messages of the specific correlation ID.
    how to use uls viewer sharepoint 2013
Please note, this searches LOGS only with in the current web front end. If you have multiple web front end servers, you have to repeat this step in all servers of your SharePoint farm. To monitor live ULS logs, Use File >> Open From >> ULS (Ctrl + U) option!

You can also use PowerShell cmdlet Get-SPLogEvent to get error details from the correlation ID. Here is How to get detailed error from Correlation ID using PowerShell



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Check out these SharePoint products:

No comments :

Post a Comment

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...