TryingToCode
TryingToCode

Reputation: 81

Azure application Insights query for monitoring trend comparison

I am looking for comparing diffrent trends in Azure App Insights , Chart looks like below

enter image description here

Can we have any example query's to compare multiple events in the same chart ? Can someone help getting an example query or reference documents in Azure Application Insights ?

Upvotes: 0

Views: 985

Answers (1)

Monika Reddy
Monika Reddy

Reputation: 963

You can do it using Workbooks or in the Log Analytics query window with something like this:

customEvents
| summarize count() by name, bin(timestamp, 7d)

enter image description here

enter image description here

For AppInsights customEvent data the above query would work, if it is a more traditional Azure Monitor/Log Analytics event then you would need a different query as the tables/field names are different.

Log Analytics uses TimeGenerated whereas classic App Insights resources use Timestamp.

Upvotes: 1

Related Questions