SharePoint Monitoring Using Azure Application Insights

Application Insights is a great way to dig deep and  troubleshoot issues with any application hosted locally or on the cloud. It's quite easy to configure. There are 3 ways to configure 

  • Build Time
  • Run Time
  • Both of above

We can collect the following type of reports diagnostics using Application Insights

  • Diagnostic trace logs 
  • Dependency rates
  • Response times
  • Failure rates
  • AJAX Calls, Exceptions
  • Host diagnostics 
  • Page views and load performance
  • User and session counts
  • Performance counters
  • Custom events and metrics

Let me show you a step by step example how to configure Azure Application Insights to monitor SharePoint Site. In my example below I am configuring office 365 site (It does not matter either local or on Cloud)

  1. In PowerShell use below command in order to connect with Azure

    Login-AzureRmAccoun

  2. Click + button and search for "Application Insights"

    sharepoint
  1. Click "Create" button

    sharepoint
  1. Provide credentials; I  gave the name "Test_ApplicationInsights"

    sharepoint
  1. Service is only available in the following regions right now. Perhaps  later Microsoft will offer it in other regions

    sharepoint
  1. Here you can see the properties of "Application Insights"

    sharepoint
  1. Click "Getting Started" in order to pull script (This is the script you will insert in your SharePoint site pages)

    sharepoint
  1. After copying script paste in SharePoint Site using SharePoint ribbon to insert script as shown below

    sharepoint
  1. After inserting users, session and page views will be visible in Azure Portal (Application Insights)

    sharepoint
  1. There you go, you can see the graphs/stats from different angles

    sharepoint

    sharepoint

    sharepoint