Home > Power Shell, SharePoint 2010 > SharePoint 2010 Usage and Health Data Collection Service Application

SharePoint 2010 Usage and Health Data Collection Service Application

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. So, How do you create a Usage and Health Data Collection Service Application? Your natural instinct is you login to Central Admin -> Application Management -> Manage Service Application -> New

Guess What? You do not see a “New Usage and Health Data Collection Service Application”

So How do you do it? Well You can create it by following this Technet Article. You need to navigate to Monitoring, Click on Configure Usage and Health Data Collection, check the box for “, select the Events to Log, Put in the log file location, SQL information and you are done. Now you have Health Data Collection Service Application but if you navigate back to Manage Service Application Section, you see that the Usage and Health Data Collection Proxy is Stopped.  How do we start? I will get there in a Minute.

You can also create Usage and Health Data Collection Service Application by using Power Shell, here is the Syntax for it. I love Power Shell, so this is my preferred method.

New-SPUsageApplication -Name “UsageAppName” -DatabaseServer “DBServerName” -DatabaseName “DBName”

Even if you use Power Shell to create the Usage and Health Data Collection Service Application, if you navigate back to Manage Service Application, you see that the Usage and Health Data Collection Proxy is Stopped.

So to Start the Usage and Health Data Collection Proxy, use the Power Shell Command below

$Usage = Get-SPServiceApplicationProxy | where {$_.TypeName -eq “Usage and Health Data Collection Proxy”}

$Usage.provision()

This should get your Usage and Health Data Collection Proxy started, hopefully you will find some peace!


 

New-SPUsageApplication -Name UsageName -DatabaseServer $databaseServerName -DatabaseName “UsageDB”

About these ads
  1. octavio
    April 19, 2011 at 1:47 am | #1

    Nice post, thanks Avinash.

  2. Michal
    January 9, 2012 at 12:17 pm | #2

    It work fine. Thanks.

  1. December 27, 2010 at 11:58 pm | #1

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: