BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDesigning and Implementing Microsoft DevOps Solutions (AZ-400)Kusto Query Language
Lesson238 words

Kusto Query Language

Interrogate logs using basic Kusto Query Language queries

The shape

A KQL query starts with a table and pipes it through operators:

kusto
requests | where timestamp > ago(24h) | where success == false | summarize failures = count() by name, bin(timestamp, 1h) | order by failures desc | take 20

Read it top to bottom: source → filter → aggregate → order → limit. Recognising that shape matters more than memorising operators, because almost every practical query follows it.

The operators worth knowing

OperatorDoes
whereFilter rows
summarizeAggregate — count(), avg(), percentile()
bin()Bucket a timestamp into intervals, for time series
projectChoose columns
extendAdd a calculated column
joinCombine tables
order by / takeSort and limit

Filter early

Put where as close to the source as possible. Filtering before aggregating reduces the data scanned, which matters for both speed and cost on a large workspace — and a time filter is nearly always the most valuable one.

Percentiles

kusto
requests | summarize p95 = percentile(duration, 95), p99 = percentile(duration, 99) by name

This is the query behind the earlier point that averages hide the tail. Reporting p95 and p99 by operation is the standard latency view.

Primary sources

  • https://learn.microsoft.com/en-us/azure/azure-monitor/logs/log-query-overview
All Designing and Implementing Microsoft DevOps Solutions (AZ-400) Study Resources

Related Notes

  • Agent and runner infrastructure421 words
  • Agent and runner infrastructure — quick notes150 words
  • Alerting on pipeline events255 words
  • Alerting on pipeline events — quick notes94 words
  • Analyzing usage and application performance241 words
  • Analyzing usage and application performance — quick notes73 words
  • Appropriate access levels217 words
  • Appropriate access levels — quick notes85 words
  • Automating container scanning277 words
  • Automating container scanning — quick notes96 words
  • Automating documentation from Git history191 words
  • Automating documentation from Git history — quick notes55 words

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
Designing and Implementing Microsoft DevOps Solutions (AZ-400) ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.