Application Gateway scale operations

%3CLINGO-SUB%20id%3D%22lingo-sub-1942708%22%20slang%3D%22en-US%22%3EApplication%20Gateway%20scale%20operations%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1942708%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EI%20have%20all%20my%20Application%20Gateway%20logs%20going%20to%20a%20Log%20Analytics%20work%20space.%26nbsp%3B%3C%2FSPAN%3EWhat%20is%20the%20query%20to%20get%20the%20count%20of%26nbsp%3BApplication%20Gateway%20scale%20operations%20per%20day%2Fper%20month%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

I have all my Application Gateway logs going to a Log Analytics work space. What is the query to get the count of Application Gateway scale operations per day/per month? 

1 Reply

@snvvk What do you mean by a "scale operation" is this a count, this shows the daily count for the last 7 days per instance?   There are WAF logs as well as the Auditlogs?

i.e.

AzureDiagnostics 
where TimeGenerated > startofday(ago(7d))
where Category == "ApplicationGatewayAccessLog" 
summarize count() by instanceId_s, bin(TimeGenerated,1d)
order by TimeGenerated desc, instanceId_s asc
//| render  areachart