Logo
PREGNANCY
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
 
 
Windows Server

SharePoint 2013 : Health and Monitoring (part 2) - Correlation IDs, The Logging Database

3/8/2014 8:03:07 PM

Correlation IDs

Since the previous version of SharePoint, Microsoft has introduced Correlation IDs GUIDs (Global Unique Identifiers) that map an event in SharePoint with the error or warning in the ULS log (see Figure 3). Prior to SharePoint 2013, the administrator had to hunt and peck through the log files looking for the event that caused the error. Correlation IDs now allow a user experiencing a problem and an error page to send the ID to the administrator to find more details about the issue.

9781430249412_Fig05-25.jpg

Figure 3. Correlation ID in a SharePoint error page

As well as using a text-editor-find action to find errors in the ULS log files, SharePoint includes a very nice PowerShell command to simplify finding the messages with a given Correlation ID:

Get-SPLogEvent | ?{$_.Correlation -eq "<ID>"}

The Logging Database

The logging database in SharePoint provides developers with a central data store to capture all events occurring in the platform. Microsoft introduced the logging database both to provide a transactional database of all events for easy query and to herd developers away from executing custom queries directly against content and configuration databases in the farm.

The logging database provides a central location to query all events occurring in the farm, whereas ULS logs only report information per the verbosity settings and spread across servers in the farm. The following steps demonstrate how to configure the logging database for your farm:

  1. Open Central Administration.
  2. Click the Monitoring heading link.
  3. Click the Configure Usage and Health Data Collection link.
  4. Figure 3 shows a page for configuring the health data collection events.

    9781430249412_Fig05-26.jpg

    Figure 3. Configure Health Data Collection

  5. Ensure that the topmost check box is checked to enable usage data collection.
  6. Select the events you wish SharePoint to capture.

     Note  In the Usage Data Collection Settings section, notice that the location defaults to the same folder as ULS logs; if you look into this folder you should see usage files as well as the familiar log files.

  7. Check the box for the Health Data Collection setting to monitor SharePoint farm health, which is in addition to usage.
  8. Click the Health Logging Schedule link if you wish to change the schedules that the health logging timer services run (several of them).
  9. SharePoint populates the logging database using the various usage files on each SharePoint server.
  10. A timer service collects data from these files and populates the database configured in the Logging Database Server section.
  11. Click the link to configure the schedule of the log collection timer service.

Allow the usage collection to run for a day or two and interact with your farm to generate usage events. Next, I shall show you the logging database, which in my farm is the ROBDEMO_UsageandHealth database.

  1. Open SQL Server Management Studio.
  2. Navigate to the logging database.
  3. If you expand the Tables node, you should see a large number of partitioned tables, which is not too helpful.
  4. Expand the Views node instead.
  5. You may execute SQL queries against the views.
  6. In Figure 4, I ran a select T-SQL statement over the dbo.FeatureUsage view.

9781430249412_Fig05-27.jpg

Figure 4. SQL Server Management Studio and the logging database

The logging database also contains a number of stored procedures that return tabular usage data. As you can see, the logging database provides a nice collection of usage event data that developers may query in custom controls, without having to dip into the main farm content and configuration databases. The premise here is that Microsoft optimizes the configuration and content databases for SharePoint and does not guarantee consistency in the schema between versions. The logging database is isolated from the other farm databases and offers consistency, allowing developers the confidence that their queries remain working with future upgrades of the platform.

Other -----------------
- SharePoint 2013 Request Management (part 2) - Request Management Administration
- SharePoint 2013 Request Management (part 1) - The Request Management Process
- Windows Server 2012 : Deploying Storage Spaces (part 5) - Implementing Storage Spaces, Using Windows PowerShell
- Windows Server 2012 : Deploying Storage Spaces (part 4) - Planning a Storage Spaces deployment - Availability, Management
- Windows Server 2012 : Deploying Storage Spaces (part 3) - Planning a Storage Spaces deployment - Hardware, Performance, Resiliency
- Windows Server 2012 : Deploying Storage Spaces (part 2) - Understanding Storage Spaces - Fixed vs. thin provisioning
- Windows Server 2012 : Deploying Storage Spaces (part 1) - Understanding Storage Spaces - Concepts and terminology
- Microsoft Exchange Server 2010 : Working with SMTP Connectors, Sites, and Links (part 8) - Connecting to Exchange 2003 Routing Groups
- Microsoft Exchange Server 2010 : Working with SMTP Connectors, Sites, and Links (part 7) - Viewing and Managing Receive Connectors
- Microsoft Exchange Server 2010 : Working with SMTP Connectors, Sites, and Links (part 6) - Creating Receive Connectors
- Microsoft Exchange Server 2010 : Working with SMTP Connectors, Sites, and Links (part 5) - Configuring Send Connector DNS Lookups, Setting Send Connector Limits
- Microsoft Exchange Server 2010 : Working with SMTP Connectors, Sites, and Links (part 4) - Viewing and Managing Send Connectors
- Microsoft Exchange Server 2010 : Working with SMTP Connectors, Sites, and Links (part 3) - Creating Send Connectors
- Microsoft Exchange Server 2010 : Working with SMTP Connectors, Sites, and Links (part 2) - Viewing and Managing Active Directory Site Link Details
- Microsoft Exchange Server 2010 : Working with SMTP Connectors, Sites, and Links (part 1) - Viewing and Managing Active Directory Site Details
- Administering an Exchange Server 2013 Environment (part 9) - Server Administration
- Administering an Exchange Server 2013 Environment (part 8) - Understanding Archiving
- Administering an Exchange Server 2013 Environment (part 7) - Understanding Journaling
- Administering an Exchange Server 2013 Environment (part 6) - Introduction to Role Based Access Control
- Administering an Exchange Server 2013 Environment (part 5) - Performing Common Tasks - Creating Multiple Mailboxes in the Exchange Management Shell
 
 
Most view of day
- Maintaining Desktop Health : Understanding Windows Error Reporting (part 3) - Architecture of Windows Error Reporting, Configuring Windows Error Reporting
- Planning Deployment : Preparing for Development
- Sharepoint 2013 : The Office JavaScript Object Model (part 1) - Document-based Apps
- Windows Server 2012 : Provisioning and managing shared storage (part 1) - Provisioning shared storage - Creating a storage pool
- Sharepoint 2013 : Integrating Apps for Office with SharePoint (part 1) - Standalone Apps for Office
- Microsoft Dynamic GP 2010 : Providing clean vendor information by properly closing Purchase Orders, Protecting against information loss by printing Fixed Asset Reports
- Microsoft Visio 2010 : Sending Visio Files in Email, Saving as PDF or XPS Files
- Managing Windows Licensing and Activation : Licensing Windows
- Microsoft Systems Management Server 2003 : Analysis and Troubleshooting Tools - Working with Status Messages (part 1) - Viewing Site Status Messages
- Sharepoint 2013 : Office 2013 and an Overview of Integration (part 3) - SkyDrive and Office 365
Top 10
- Configuring and Troubleshooting IPv6 in Windows Vista (part 4) - Troubleshooting IPv6 Connectivity
- Configuring and Troubleshooting IPv6 in Windows Vista (part 3) - Configuring IPv6 in Windows Vista Using Netsh , Other IPv6 Configuration Tasks
- Configuring and Troubleshooting IPv6 in Windows Vista (part 2) - Configuring IPv6 in Windows Vista Using the User Interface
- Configuring and Troubleshooting IPv6 in Windows Vista (part 1) - Displaying IPv6 Address Settings
- Deploying IPv6 : IPv6 Enhancements in Windows Vista
- Games and Windows 7 : Games for Windows - LIVE (part 2) - Accessing Games for Windows - LIVE from within Compatible Games
- Games and Windows 7 : Games for Windows - LIVE (part 1) - Using the Games for Windows - LIVE Marketplace
- Sharepoint 2013 : Client-side Programming - Working with the REST API (part 3)
- Sharepoint 2013 : Client-side Programming - Working with the REST API (part 2) - Working with the REST API in JavaScript
- Sharepoint 2013 : Client-side Programming - Working with the REST API (part 1) - Understanding REST fundamentals
 
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro