IT tutorials
 
Technology
 

SharePoint 2010 : Monitoring and Reporting - Accessing the SharePoint 2010 logging database

8/13/2013 11:28:35 AM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

The SharePoint 2010 logging database is a major enhancement to monitoring, debugging, and protecting the health of the farm.

By default, the database is called WSS_Logging&;. This database should be the starting point for administrators to collect and analyze information.

In this recipe, we will access the database and run a view (that already is installed) against it.

Getting ready

You must have farm-level administrative permissions to the Central Administration site. You must have read and execute permissions as well to the WSS_Logging database in order to open and execute views.

How to do it...

  1. Open up SQL Server Management Studio.

  2. When asked for authentication, log in to the correct instance where SharePoint is running using your windows authentication credentials. If SQL authentication is the preferred method of connecting, use the appropriate User ID/Password.

  3. Navigate to the WSS_Logging database and click on the plus sign to expand it.

  4. Under the toolbar at the top, click on the New Query button.

  5. In the new query window, type in the following query: Select * from RequestUsage.

  6. Click Execute. Results are populated in the window pane below the query, as seen in the following screenshot:

How it works...

In the above recipe a view called RequestUsage&; was executed. This is an out of the box view that provides site usage information. It provides information such as the referring URL, the browser being used, the site ID, the web ID, the server URL, the request type, and when it was done.

The logging database contains, but is not limited to, the following information:

ULS logs NT event logs Performance counters
Feature usage Blocking queries Site usage
Timer job information   

It is a place where information is aggregated from across the farm. For instance, all ULS logs, from every SharePoint server, are collected within this database.

There are 26 views installed by default. However, the purpose of this database is to give administrators and developers a place to log information based on processes. These are typically custom processes. Views can be created to meet an organization's needs.

There's more...

The location of the logging database is not a setting that can be done through the user interface in Central Administration. Because of all the data that is collected in this database, it can grow quite large. Additionally, as SharePoint-integrated applications are created, developers can utilize this database to communicate issues.

Therefore, due to size and usage, it is a wise idea to move the database to another physical location such as a dedicated disk. This can be done only via PowerShell, using the following command:

Set-SPUsageApplication -DatabaseServer <DB Server Name> -DatabaseName <DB Name> 
[-DatabaseUsername <User Name>] [-DatabasePassword <Password>]

More info
The ULS logs are present on every WFE. It is important for an Administrator to know where to find these logs manually. They are located at the following location: \Common Files\Microsoft Shared\Web Server Extensions\14\Logs.
 
Others
 
- Windows Server 2012 : Using Event Viewer for Hyper-V troubleshooting
- Windows Server 2012 : Tuning your Hyper-V server
- Windows Server 2012 : Using Resource Metering
- Windows Server 2012 : Monitoring Hyper-V Replica
- Windows Phone 8 : Other Ways of Launching Your App (part 2) - Using a File Association
- Windows Phone 8 : Other Ways of Launching Your App (part 1) - Using a Custom Protocol
- Windows Phone 8 : Phone Integration - Live Tiles (part 2)
- Windows Phone 8 : Phone Integration - Live Tiles (part 1)
- Active Directory 2008 : Administering Groups in an Enterprise (part 3) - Understanding Shadow Groups, Default Groups
- Active Directory 2008 : Administering Groups in an Enterprise (part 2) - Delegating the Management of Group Membership
 
 
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