Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

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

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
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
 
 
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
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server