Forum Discussion

BartKos's avatar
BartKos
Copper Contributor
Aug 30, 2019

Find requests source - ASP.NET Apps v4.0.30319\Request/sec

Hello,

 

I have an Alert Rule set based on Log Analytics query to check RPS for my SharePoint application VMs

 

In last couple of days I have received a lot of emails from the alert rule that RPS>10, where in last months there were none. After quick check I have noticed that there are RPS between avg 10-15, but today there was RPS avg value of 30 and after searching all entries I found two entries with 6551 requests each. 
I am trying to determine the source of those request and I stuck as I cannot find or build any log query with information I need. 
 
Could you please help me?

5 Replies

  • BartKos 

     

    Is this data in the Office table?

    OfficeActivity
    | where OfficeWorkload == "SharePoint" 
     
    or Somewhere else, perhaps you sharing your query 'as is' will help us to help you?
    • BartKos's avatar
      BartKos
      Copper Contributor

      Hello CliveWatson 

       

      Here is a query I am using to get avg requests:

       

      Perf
      | where ( ObjectName == "ASP.NET Apps v4.0.30319" )
      | where CounterName == "Requests/Sec"
      | where TimeGenerated> ago(15m)
      | project TimeGenerated, Computer, RPS=CounterValue
      | summarize AvgRpsLast15Minutes= avg(RPS) by Computer
      | where AvgRpsLast15Minutes > 10

       

      I am monitoring those request to SharePoint Servers (SHP2013 on WindowsServer 2012R2).

       

      I do not have Office in my LogManagement so I got syntax error for the query you suggested to check. 

      • CliveWatson's avatar
        CliveWatson
        Former Employee

        Hi BartKos 

         

        We now have two crucial pieces of info, you are using the PERF table and RPS is a column you have defined that maps to "Request/Sec".  

        Your query if you don't run the final line, will show which computers have the spikes.  I would probably look to the Events table (if you have it) and also check any system updates on those computers to see if a patch or change caused the spike.

         

        You could use a query like this to see when the spikes first started or if there is a pattern (i.e. always on a Monday at 9am etc...)

        Perf
        | where TimeGenerated > ago(7d)
        | where Computer in ("App04","App05")  // add in your computer names 
        | where ObjectName == "Processor"
        | where CounterName == "% Processor Time" and InstanceName == "_Total"
        | project TimeGenerated, Computer, RPS=CounterValue
        | summarize AvgRpsLast15Minutes= avg(RPS) by bin(TimeGenerated, 1h), Computer

        Test my query in the demo portal, just click:
        Go to Log Analytics and Run Query 




        Note: I've used Processor/CPU data as I don't have any asp.net, so please adjust lines 4 and 5

         

         

Resources