SharePoint On-Premise
Configuring Multiple Web Applications
In order to monitor an additional web application in your existing farm, please do the following:
- Confirm that the CardioLog service account has db_datareader SQL permissions for the SharePoint portal content database.
- In the Administration pane, click System Configuration, and then select SharePoint Tree Adaptor.
- Click on your SharePoint farm.
- In the Web Sites section, select a web application zone and click the magnifying glass icon.
System Configuration - SharePoint Tree Adapter - Select Zone
- Select the web application/s you want to monitor and click Save.
System Configuration - SharePoint Tree Adapter - Select Web Sites
- Restart the CardioLog Scheduling Service by selecting Administration in the navigation pane, and then selecting CardioLog Scheduling Service. Click Restart Service in the upper right hand corner.
- The tree structure will be refreshed the next day, after the Portal Tree Updates job is executed. The updated tree structure will be available in the Analysis Center and Object Explorer.
- If you are using the CardioLog Analytics tracking feature, or if you have configured the CardioLogAgent web application on your SharePoint WFEs, open the new web application in IIS Manager and verify that the CardioLogAgent folder under the "_layouts" directory is configured as a web application (if not, right click on it and select "Convert to Application").
- Verify data collection from the new web application.
Configuring Multiple Farms
In order to monitor multiple SharePoint farms using the SharePoint Tree Adaptor, please follow these steps:
Configuring the SharePoint Farm Tree Structure
- Add the db_datareader SQL permissions to the CardioLog service account for the SharePoint portal configuration and content databases, and grant read access to the SharePoint TEMPLATE folder.
- In the Administration section of the navigation pane, click System Configuration, and then select SharePoint Tree Adaptor.
- Click Add Farm, and then select your SharePoint version.
- In the SharePoint Tree Adaptor dialog, fill out the following fields:
- Name - This is the title of the farm folder which will be displayed in the CardioLog tree structure in the Analysis Center. Ex: "SharePoint 2016"
- Database Server - The SharePoint database instance name.
- SharePoint Configuration Database Name - The SharePoint configuration database name. Ex: "SharePoint_Config"
- SharePoint Profile Database Server, SharePoint Profile Database Name - Optional. Used when configuring user categories from SharePoint user profiles. Add the db_datareader SQL permissions to the CardioLog service account for the SharePoint profile database.
- Authentication - Database authentication type. Click Set to choose between Windows Integrated and SQL Server Authentication.
- SharePoint TEMPLATE Directory - This is the full path for the SharePoint 'TEMPLATE' directory. Ex: "\\<sharepoint WFE server name>\C$\Program Files\Common Files\Microsoft Shared\Web Server Extensions\XX\TEMPLATE\" (Where XX = 12 for MOSS 2007; 14 for SharePoint 2010; 15 for SharePoint 2013, 16 for SharePoint 2016).
- Advanced Settings - Select the additional import and transfer preferences you would like to include.
System Configuration - SharePoint Tree Adaptor - In the Web Sites section, select a web application zone and click the magnifying glass icon.
SharePoint Tree Adapter: Select Zone - Select all of the web applications you would like to monitor, then click Save.
SharePoint Tree Adapter: Select Web Sites - Restart the CardioLog Scheduling Service. The tree structure will be refreshed the next day, after the Portal Tree Updates job is executed. The updated tree structure will be available in Analysis Center and Object Explorer.
Configuring the CardioLog Analytics Tracking Code
- In the Administration section of the navigation pane, click System Configuration, and then select SharePoint Tree Adaptor.
- Click on the SharePoint farm > Additional Actions > Click on Install Tracking Feature.
System Configuration - SharePoint Tree Adapter - Install Tracking Feature
- Select Farm > Click on Install.
Install Tracking Feature - This action will automatically deploy the 'CardioLog Analytics' farm level solution and copy the tracking agent code to all of your SharePoint Web Front End (WFE) servers.
Note: The following permissions and roles are required for the CardioLog user account to update the 'CardioLog Analytics' solution: SharePoint farm administrator; local administrator on the SharePoint application server and WFEs; "db_owner" on the SharePoint config database. - Temporary downtime of SharePoint is required while deploying the 'CardioLog Analytics' solution. In case you would like to install it manually follow this guide: 'CardioLog Analytics' SharePoint Feature Manual Installation Procedure.
Importing Document Versioning Information for your SharePoint Lists and Libraries
In order to take full advantage of document modification reports, turn on versioning for your SharePoint lists and libraries. Versioning is the method by which successive iterations of a given document are numbered and saved.
To collect document versioning information from SharePoint:
- Go to Administration in the navigation pane, click System Configuration, and then select SharePoint Tree Adaptor.
- Click on the SharePoint farm you would like to collect document versioning information from.
- Check "Import document versioning information for your SharePoint lists and libraries" in the Advanced Settings section.
SharePoint Tree Adaptor - Import Document Versioning
- Click Save at the bottom of the page to confirm.
- In the Administration navigation pane, click CardioLog Scheduling Service.
- Click Portal Tree Updates.
- Set the Service Schedule and then click OK.
- Click Restart Service to activate any changes.
Importing Social Information for your SharePoint Farm
SharePoint offers a variety of out-of-the box social features such as content likes, rating and ranking, sharing content, following content, and more.
To import social information from SharePoint 2013 or above, and perform detailed analysis of the site's social activity:
- Go to Administration in the navigation pane, click System Configuration, and then select SharePoint Tree Adaptor.
- Click on the SharePoint farm you would like to collect social information from.
- Check "Import social information for your SharePoint farm" in the Advanced Settings section.
SharePoint Tree Adaptor - Import Social Information - Click Save at the bottom of the page to confirm.
- In the Administration navigation pane, click CardioLog Scheduling Service.
- Click Social Updates.
- Set the Service Schedule and then click OK.
- Click Restart Service to activate any changes.
- Social reports will be available in the Report Center.
Importing Metadata I
To import metadata fields for your SharePoint list items and documents or property bag entries for SharePoint sites, and perform detailed analysis based on this information:
- Go to Administration in the navigation pane, click System Configuration, and then select SharePoint Tree Adaptor.
- Click on the SharePoint farm you would like to import metadata information from.
- Check "Import metadata information for your SharePoint list items, documents or sites" in the Advanced Settings section.
SharePoint Tree Adaptor - Import Metadata Information - Click Manage Metadata to select the metadata fields you would like to import.
SharePoint Tree Adaptor - Manage Metadata
- Click Add to add SharePoint metadata fields.
- Select the metadata field type - Open Text attribute or Managed Metadata (term set) attribute.
- For Open Text attributes click Add attribute, type the field name and click Save.
Add SharePoint Metadata field - Open Text Attribute
- For Managed Metadata attributes, select the fields you would like to import and click Save.
Add SharePoint Metadata field - Managed Metadata (term set) Attribute
- Select the SharePoint content type for each metadata field.
SharePoint Tree Adaptor - Manage Metadata - Select Content Type
- Click Save at the bottom of the page to confirm.
- In the Administration navigation pane, click CardioLog Scheduling Service.
- Click Portal Tree Updates.
- Set the Service Schedule and then click OK.
- Click Restart Service to activate any changes.
- Metadata filters will be available in the Report Center.
Importing the SharePoint Tree Structure via the SharePoint API
CardioLog Analytics System Architecture When the SharePoint Tree Structure is loaded via the SharePoint API
In order to import the SharePoint farm tree structure using the SharePoint REST API (available for SharePoint 2013, 2016 and 2019), please follow these steps:
- Make sure you can access the SharePoint Admin Center URL and all SharePoint web applications URLs (/_api/) from the CardioLog application server over HTTP/HTTPS.
- In the Administration section of the navigation pane, click System Configuration, and then select SharePoint Tree Adaptor.
- Click Add Farm, and then select your SharePoint version.
- In the SharePoint Tree Adaptor dialog, fill out the following fields:
- Name - Enter the title of the farm folder that you would like to display in the Object Explorer and in the Analysis Center. Ex: "SharePoint 2016"
- Advanced Settings - For SharePoint 2013, check "Import the SharePoint tree structure via the SharePoint API" in the Advanced Settings section.
- Authentication - Choose between Windows Integrated or Windows authentication. The selected account should be the SharePoint farm admin service account (make sure the farm admin account has full access rights to the selected web applications in SharePoint Central Administration > Manage Web Application > User Policy).
- SharePoint Admin Center URL - Enter the SharePoint Admin Center URL. Ex: http://intlock.com:2016/"
- Web Sites List in CSV format (Optional) - Use this when a SharePoint Admin Center URL is not available. Enter the file path for the CSV that contains the list of web applications you would like to monitor.
System Configuration - SharePoint Tree Adaptor - SharePoint 2013
System Configuration - SharePoint Tree Adaptor - SharePoint 2016
- In the Web Sites section, select a web application zone and click the magnifying glass icon.
- If the list of web applications is not available via SharePoint Central Administration, please follow these steps:
- Go to [CardioLog Installation Folder]\Setup Files\
- Copy the powershell script file <webs.ps1> to your SharePoint Central Administration server.
- Login to your SharePoint Central Administration server with the SharePoint farm administrator account and run Windows Power Shell as an administrator.
- Execute the webs.ps1 script.
- The script will generate a list of web applications in CSV format in C:\webapps.csv
- In the SharePoint Tree Adaptor dialog, enter the CSV file path in Web sites list in CSV format.
- Select a web application zone and click the magnifying glass icon.
- Select all of the web applications you would like to monitor, then click Save.
- In the Administration navigation pane, click CardioLog Scheduling Service.
- Click Portal Tree Updates.
- Set the Service Schedule and then click OK.
- Click Restart Service to activate any changes.
SharePoint Online
Configuring Multiple Site Collections
In order to monitor additional site collections in your existing SharePoint Online environment, follow these steps:
- In the Administration pane, click System Configuration, and then select SharePoint Tree Adaptor.
- Click on your SharePoint Online tenant and select the site collection/s you want to monitor.
- Restart the CardioLog Scheduling Service. The tree structure will be refreshed the next day, after the Portal Tree Updates job execution.
- Configure event collection - deploy the CardioLog Analytics SharePoint solution on your site collection/s or insert the code manually (to your master page).
Configuring Multiple SharePoint Online Tenants
In order to monitor a new SharePoint Online environments, follow these steps:
- In the Administration pane, click System Configuration, and then select SharePoint Tree Adaptor.
- Click Add Farm, and then select SharePoint Online.
- In the SharePoint Tree Adaptor dialog, fill out the following fields:
System Configuration - SharePoint Online Tree Adaptor- Name - This is the title of the SharePoint Online tenant folder which will be displayed in the CardioLog tree structure in the Analysis Center. Example: "SharePoint Online"
- SharePoint Admin Center URL (https://) - Enter the SharePoint Admin Center URL in a secured format (https://).
- Authentication - The selected account should have a Global Administrator role in Office 365 Admin Center.
- Microsoft Live ID (Office 365)
- OAuth (recommended) - in order to securely connect to the SharePoint Online API, register and configure a new SharePoint Online App to obtain the required authentication details (client ID and client secret).
- Click the magnifying glass icon.
- Select the site collection/s you want to monitor and click Save.
- Restart the CardioLog Scheduling Service. The tree structure will be refreshed the next day, after the Portal Tree Updates job execution.
- Configure event collection by either deploying the CardioLog Analytics SharePoint solution on all of your site collections or insert the JavaScript code manually on your master page.
Create a SharePoint Online App
Register New App
- Login to SharePoint with the Global Administrator account.
- Navigate to
https://<Admin Center>/_layouts/15/
AppRegNew.aspx
(e.g. https://intlock-admin.sharepoint.com/_layouts/15/AppRegNew.aspx).
(If you do not have permissions to access this URL, use the root site collection URL instead:https://<Root Site Collection>/_layouts/15/
AppRegNew.aspx)
- Click Generate to automatically create Client Id and Client Secret and copy these values.
- Enter a Title for app. For example, "CardioLogApp".
- Fill in App Domain and Redirect URI which should use the same app domain that is entered. For example, www.intlock.com and https://www.intlock.com/.
- Click Create
- If the app was created successfully, the following message will appear: "The app identifier has been successfully created".
Grant Permissions to App
- Navigate to
https://<Admin Center>/_layouts/15/
AppInv.aspx
(e.g. https://intlock-admin.sharepoint.com/_layouts/15/AppInv.aspx). Paste client ID generated earlier into App Id field. Click Lookup. The existing values for Title, App Domain and Redirect URL should appear.
Enter the following XML into the App's Permission Request XML field to specify required permissions. Then click Create.
<
AppPermissionRequests
AllowAppOnlyPolicy
=
"true"
>
</
AppPermissionRequests
>
- You will be prompted to approve permissions for the app. Click Trust It.
- You can check the App registration details by navigating to:
https://<Admin Center>/_layouts/15/
AppPrincipals.aspx
You can test the App credentials by executing the following powershell commands to retrieve the list of all available site collections.
$ Connect-PnPOnline https://<your-tenant>-admin.sharepoint.com -AppId <your-app-id> -AppSecret <your-app-secret>$ Get-PnPTenantSite
Deploying the CardioLog Tracking Code on Multiple Site Collections
In order to deploy the tracking code on multiple site collections in your SharePoint Online environment, follow these steps:
- In the Administration section of the Navigation pane, click System Configuration, and then select SharePoint Tree Adaptor.
- Click on your SharePoint Online tenant.
- Click on Download next to Additional Actions to download the tracking code deployment package WSP-Tracking-Install-Script.zip.
Note: The deployment package includes a PowerShell script that deploys the tracking agent wsp solution and JavaScript tracking code on all selected site collections, as well as the modern sites integration app on the App catalog and on all selected site collections and their sub-sites.
SharePoint Online Adaptor - Download Tracking Code Deployment Package
- Right click the downloaded package zip file, select Properties > General and click on "Unblock" before unzipping it.
Open the tracking.txt file and edit the <cardiologserverdnsname> (CardioLog application server/tracking server public DNS name, without the https:// protocol prefix). Verify that it is accessible over the public internet.
- Run the Run_Script.ps1 script in PowerShell. Make sure the you have the following prerequisites before executing the PowerShell script:
- You must have PowerShell version 5.1 or higher with the MS Online module installed.
- The credentials of the SharePoint Online global administrator.
- If you are using multi-factor authentication (MFA), make sure you have an app password for Office 365.
Make sure custom scripts are turned on (changes in this setting take up to 24 hours to apply):
Office 365 Admin > Admin Centers > SharePoint Admin Center > Settings > Custom Script > Select Allow in both options
In case a specific site collection does not inherit these settings from SharePoint Central Administration, you can execute the following commands in SharePoint Online Management Shell (replace the placeholders for [company] and [site collection url]):
Importing Document Versioning Information for your SharePoint Lists and Libraries
In order to take full advantage of document modification reports, turn on versioning for your SharePoint lists and libraries. Versioning numbers and saves successive iterations of a given document to monitor changes in the document over time.
To collect document versioning information from SharePoint Online:
- Go to Administration in the navigation pane, click System Configuration, and then select SharePoint Tree Adaptor.
- Click on the SharePoint Online site you would like to collect document versioning information from.
- Enable "Import document versioning information for your SharePoint lists and libraries" next to Advanced Settings.
SharePoint Online Adaptor - Import Document Versioning
- Click Save at the bottom of the page to confirm.
- In the Administration navigation pane, click CardioLog Scheduling Service.
- Click Portal Tree Updates.
- Set the Service Schedule and then click OK.
- Click Restart Service to activate any changes.