IT tutorials
 
Technology
 

SharePoint 2010 : Monitoring and Reporting - Troubleshooting with correlation IDs

8/17/2013 3:28:43 PM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

An undesirable thing for users of SharePoint is getting an indefinite message that has a big red "X" and the word "Error" in bold adjacent to it. The user has done something but the page does not tell what the error is and how to fix this error. It only points them to the site administrator, that is, you.

SharePoint 2010 has addressed this issue by creating a mechanism to track communications between the web front-ends and the user's requests. This is in the form of a GUID called the correlation ID. Now when a user gets his/her error page, he/she can contact the administrator and provide the correlation ID. The administrator can then track the cause of this error using the correlation ID as a reference in the ULS logs.

This recipe shows the steps to perform after the correlation ID is provided to the administrator. To induce the error with a correlation ID, we will stop the web analytics service.

Getting ready

You must have farm-level administrative permissions to the Central Administration site.

This recipe uses PowerShell. You must be a member of the SharePoint_Shell_Access database role on the configuration database. You also must be a member of the WSS_ADMIN_WPG local group&;.

How to do it...

  1. In Central Administration, navigate to System Settings. Under Servers, click Manage services on server.

  2. Click Stop associated with Web Analytics Web Service.

  3. Click Monitoring on the left-hand side navigation.

  4. Under Reporting, click View Web Analytics reports. The following error should be shown:

  5. On the publishing farm server, select Start | All Programs | Microsoft SharePoint 2010 Products | SharePoint 2010 Management Shell.

  6. In the PowerShell command prompt, type in the following command, replacing the correlation ID with the one from your screen.

    Get-SPLogEvent | ?{$_.Correlation -eq "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}
    
    
    					  

    It should produce a message from the log file that reads:

    There are no instances of the Web Analytics Service Application started on any server in this farm. Ensure that at least one instance is started on an application server in the farm using the Services on Server page in Central Administration.

How it works...

The PowerShell command, Get-SPLogEvent, does the job of retrieving all events in the log files. The | character sends the output of Get-SPLogEvent to the next command. The ? is the "where" command. The curly braces is the "where" condition. The $_ notation&; is used to represent the object being sent across the pipeline. Finally, the -eq option represents the "equal to" condition.

As a whole, this statement does a search job in the log files for a particular correlation ID, and produces the information associated with the request.

A request is traced through its lifetime. The correlation ID collects information across multiple servers maintaining the integrity of the request. Different sites can consume information from an application server that resides in a different farm but is shared. Without the correlation ID, it would be very difficult and cumbersome to trace an error.

When an error occurs, the correlation ID will have the same reference across all of the servers. This applies to WFE, application, web services, and any other components that are consumed.

There's more...

There are two other methods for looking up a correlation ID other than PowerShell. They are:

  • Using Excel (or notepad): Log on to the Web Front End server that generated the error and navigate to the location of the ULS logs. Open the log file in Excel and utilize the find and innate filtering capabilities of Excel to find the correlation ID.

  • Utilizing the logging database: You can execute the Accessing the SharePoint 2010 logging database recipe and then look for the correlation ID.

More info

On Microsoft's site, there is a free ULS viewer that can be utilized. This is not supported by Microsoft. It allows users to open a ULS log file and display its contents in a readable manner. It contains filtering, sorting, and many other functions that make the data readable.

 
Others
 
- SharePoint 2010 : Monitoring and Reporting - Viewing web analytics reports
- Managing Windows Server 2012 : Managing Server 2012 Remotely - Installing RSAT
- Managing Windows Server 2012 : Server Manager (part 2) - Multiserver management and groups
- Managing Windows Server 2012 : Server Manager (part 1) - Launching and Working with Server Manager - Adding server roles and features
- Windows Phone 8 : Background Agents (part 3) - Audio Agent
- Windows Phone 8 : Background Agents (part 2) - Resource-Intensive Agent
- Windows Phone 8 : Background Agents (part 1) - Periodic Agent
- Active Directory 2008 : Configuring Computer Accounts - Supporting Computer Objects and Accounts
- Active Directory 2008 : Automating the Creation of Computer Objects
- Administration of Microsoft Lync Server 2010 : Troubleshooting (part 2) - Lync Server Logging Tool
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us