Knowledge Base/Guides & Tutorials/How To's

How to monitor SharePoint 2010 with CardioLog?

Sigalit Hassid
posted this on March 13, 2011 12:45

 

 Install the CardioLog Tracking Agent, which monitors visitor behavior in 
SharePoint web sites (The tracking code is added to a common page component 
such as Master pages) on all the SharePoint WFEs.
 Install the SharePoint Adaptor which returns a logical tree representing the 
hierarchical structure of the portal on one of the WFEs.

In order to monitor a SharePoint 2010 farm you will need to:

  1. Add the CardioLog tracking code to a common page component (such as init.js, master pages), which monitors visitor behavior in SharePoint web sites on all the SharePoint WFEs.
  2. Configure the SharePoint 2010 Adaptor which returns a logical tree representing the hierarchical structure of the portal.

CardioLog Tracking Code

  1. Copy the [CardioLog Installation Folder]\CardioLogAgent\core_js_tracking_code.txt file and change the server name to your CardioLog server name and port: script.src = "http://cardiolog server name:port/CardioLogAgent/AgentEmbed.aspx?env=SP2010&r="+Math.random()*100000;
  2. Add the edited tracking code to a common Java Script file (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\1033\init.js), or add it to a non-Java Script common page component (in this case you need to add the opening and closing <script> tags). When adding the code to a master page - insert it before the closing</head> tag, and use opening and closing <script> tags.
  3. To test the CardioLog Tracking Agent, go to a web site page which includes the tracking agent code. Press Ctrl+F12 (or Alt+F12). The CardioLog Tracking Agent Console should pop-up, displaying the ID number for the most recent monitored action (event). To close the console, press Ctrl+F12 (or Alt+F12).
  4. Repeat steps 2-3 for each SharePoint WFE.

SharePoint 2010 Tree Adaptor

Configure the SP2010Tree web application on the CardioLog server -

1.  In [CardioLog Installation Folder]\SP2010Tree\Web.config, edit the following keys in the <appSettings> section: 

includedWebApps - this is a star separated list of web applications (virtual servers) to include in the tree. 

SharePointTemplatePath - this is the full path for the SharePoint 'TEMPLATE' directory.

<appSettings>

<add key="includedWebApps" value="http://sharepoint server name:port*" />

<add key="SharePointTemplatePath" value="\\sharepoint server name\C$\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\" />

</appSettings>

 

2.  In [CardioLog Installation Folder]\SP2010Tree\Web.config, edit the following keys in the <connectionStrings> section:

configDB - this is the connection string for the SharePoint configuration database.

contentDB - this is a place holder for creating connection strings to the SharePoint content databases. Note: Leave "Initial Catalog={0};Data Source={1}" as it is.

<connectionStrings>

<add name="configDB" connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=sharepoint config database name;Data Source=database server name" />

<add name="contentDB" connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog={0};Data Source={1}" />

</connectionStrings>

 

3.  Configure the Portal Tree Updates service parameters in CardioLog > General Administration > CardioLog Schedule Service > Portal Tree Updates and add the SharePoint 2010 web application to the Portal Tree Web Services list: "http://cardiolog server name:port/SP2010Tree/default.aspx"

 
Topic is closed for comments