Logo 
Search:

Sharepoint Articles

Submit Article
Home » Articles » Sharepoint » GeneralRSS Feeds

Configure usage data collection by using Windows PowerShell SharePoint 2013

Posted By: Destin Joy     Category: Sharepoint     Views: 103702

This session provides information about how to configure usage and health data collection in Microsoft SharePoint 2013.SharePoint 2013 writes usage and health data to the logging folder and to the logging database. You have to use the Central Administration Web site to configure health data collection settings.

Usage and Health Data Collection Service Application collects Data about Usage and Health of your farm. This information is used for Health Monitoring and this is also required for running the Web Analytics Service. If you do not have a Usage and Health Data Collection Service Application or your Usage and Health Data Collection Proxy is stopped, you will not see any data in the Web Analytics Report.

 

1. Adds a user to the  SharePoint_Shell_Access role for the specified database.

2. Add-SPShellAdmin [-UserName] <String> [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-database <SPDatabasePipeBind>] [-WhatIf [<SwitchParameter>]]

3. On the Start menu, click All Programs.

4. Click Microsoft SharePoint 15 Products.

5. Click SharePoint 15 Management Shell.

6. At the Windows PowerShell command prompt (that is, PS C:\>), type the following command, and then press ENTER:

7. Set-SPUsageService [-LoggingEnabled {1 | 0}] [-UsageLogLocation <Path>] [-UsageLogMaxSpaceGB <1-20>] [-Verbose]

For UsageLogLocation, specify a path that exists on each computer in the farm.

Enable usage data logging by typing -LoggingEnabled 1. Specify the maximum amount of drive space used for logging with the UsageLogMaxSpaceGB parameter.

Configure usage data collection for a specific event type by using Windows PowerShell

The event types listed on the Configure usage and health data collection page in Central Administration are the same as Usage Definitions in Windows PowerShell. You can use only Windows PowerShell to configure usage definitions individually. Moreover, you can configure only the DaysRetained setting.

To configure usage data logging for a specific event type using Windows PowerShell

1. Verify that you meet the following minimum requirements: See Add-SPShellAdmin (http://technet.microsoft.com/en-us/library/ff607596.aspx).

2. On the Start menu, click All Programs.

3. Click Microsoft SharePoint 15 Products.

4. Click SharePoint 15 Management Shell.

5. At the Windows PowerShell command prompt (that is, PS C:\>), type the following command, and then press ENTER:

Set-SPUsageDefinition -Identity <GUID> [-Enable] [-DaysRetained <1-30>] [-Verbose]

The Identity parameter specifies the usage definition object that you want to update. The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a usage Use the Enable switch to enable usage logging for this usage definition. Use DaysRetained to specify how long the usage data is retained in the log before being deleted. The range is

Share: 



Destin Joy
Destin Joy author of Configure usage data collection by using Windows PowerShell SharePoint 2013 is from Pathanamthitta, India. Destin Joy says

 Hello Everyone,

I am Destin Joy from India I have MCPD in SharePoint 2010, MCTS SharePoint 2010 application development and MCTS in SharePoint 2007. I am mostly working in  core part of SharePoint (2010-2007) and passionate about new Microsoft technologies. Born and brought up in Kerala You can reach me  @ Destin.Joy@hotmail.com

 

 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!