Analyze logs and metrics with KQL
Unlock the complete study guide + 1,040 practice questions across 16 full exams.
Bundled into the existing Developing AI Cloud Solutions on Azure premium course — no separate purchase.
14-day money-back guarantee — no questions asked.
Included in this chapter:
- Where writing telemetry ends and reading it begins
- Two published schemas over one set of rows
- Group, bucket, or series: choosing the aggregation
- Correlating tables on the operation ID
- Why predicate order is a performance decision
- Five bounds that all feel like "how much data"
- Counting rows versus counting what happened
- The two triage columns, and how each one misleads
- Queries about the platform, not the application
- Telling the traps apart
Three aggregations that sound alike and return different shapes
| Question you are answering | summarize … by <dimension> | summarize … by bin(<time>, <step>) | make-series … on <time> step <step> |
|---|---|---|---|
| Result shape | One row per group | One row per group per interval | One row per group; each aggregate column is an array |
| Intervals with no matching rows | Not applicable | No row is produced, so the gap is invisible | An element is still produced, holding the declared default (0 unless you set one) |
| Getting back to one row per point | Already one row per group | Already one row per point | Expand the arrays with mv-expand |
| Usable by the series interpolation functions | No | No | Yes, and only where the default is double(null) |
| Typical question | Which result codes are driving the failures | When did the spike start | What does the whole window look like, idle intervals included |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
Also tested in
References
- Get started with log queries in Azure Monitor Logs
- Log query scope in Azure Monitor Log Analytics
- Application Insights telemetry data model
- Azure Monitor Logs reference: AppRequests
- Azure Monitor Logs reference: AppSystemEvents
- Example log table queries for AppRequests
- make-series operator
- render operator
- Optimize log queries in Azure Monitor
- Best practices for Kusto Query Language queries
- Azure Monitor service limits
- Query data in a Basic and Auxiliary table in Azure Monitor Logs
- Manage data retention in a Log Analytics workspace
- Metrics in Application Insights
- Azure Monitor OpenTelemetry Distro for Python (client library README)
- Configure Azure Monitor OpenTelemetry
- Monitor Azure App Configuration
- Azure Monitor Logs reference: AzureActivity
- Monitor Azure Key Vault
- Azure Key Vault logging