Reference course · by Kaushik Saha
From your first query to a threat hunt
Five missions, then a case to crack. Every query in them is checked by VeriKQL before it is published, so what you copy is what compiles.
Reference This is the original five-stage course, kept to go deeper at your own pace. New to KQL? Start with the KQL Mastery Path →
✓Missions you have opened turn green. That is your browser's own history: this site runs no script and stores nothing.
KQL for Microsoft Sentinel — A Hands-On Learning Path
From zero to threat hunting in Kusto Query Language — with a dataset you can run even if your Sentinel workspace is empty.
Most KQL tutorials assume logs are already flowing into SigninLogs and AuditLogs. New or quiet environments don't have that — so the queries return nothing and learning stalls. This path fixes that: Stage 00 seeds a realistic dataset with no ingestion required, and every early lab runs against it. Later stages graduate to the real tables once you have data.
Note No data? Practice anyway. Stage 00 gives you two free ways to get a working dataset in ~5 minutes — a seeded function in Sentinel/Log Analytics, or a CSV loaded into an Azure Data Explorer free cluster (no Azure subscription needed).
Table of Contents
- The path at a glance
- Two ways to practise
- Who this is for
- The learning path
- Reference
- How to use this
- Principles
The path at a glance
Reference anytime: operator cheatsheet · schema gotchas · Microsoft Learn links
Two ways to practise — pick one in Stage 00
| You have… | Use | Cost |
|---|---|---|
| A Sentinel / Log Analytics workspace (even empty) | Seed a saved function (datatable → DemoIdentityLogs) |
Free |
| No Azure subscription at all | Azure Data Explorer free cluster + CSV | Free — no subscription or credit card |
Both produce the same DemoIdentityLogs object, so every lab works identically either way.
Who this is for
Career starters & students · SOC Tier 1–2 analysts · threat hunters · detection engineers · security architects. Stages run novice → advanced; jump in where you fit.
The learning path
| Stage | Folder | What you learn | Runs on |
|---|---|---|---|
| 00 · Setup | 00-setup/ |
Seed a dataset 2 ways (function / CSV+ADX) | — |
| 01 · Basics | 01-basics/ |
Pipeline model, where, project, extend, let, time hygiene |
DemoIdentityLogs |
| 02 · Aggregation & Viz | 02-aggregation-viz/ |
summarize family, bin(), render, union, join |
DemoIdentityLogs |
| 03 · Advanced | 03-advanced/ |
Parsing dynamic data, modular let, ASIM, viz shaping, series ops |
Real tables |
| 04 · Threat Hunting | 04-hunting/ |
11 MITRE-mapped hunts across identity + endpoint | Real tables |
Reference (use anytime)
reference/kql-operator-cheatsheet.md— fast operator lookupreference/schema-gotchas.md— the type/column traps that silently break queriesreference/ms-reference-links.md— every Microsoft Learn source, grouped
How to use this
- Do Stage 00 once — you'll have
DemoIdentityLogsin ~5 minutes. - Work through 01 → 02, running every query and attempting the 🧪 exercises before checking answers.
- When you have real data (or want production patterns), continue to 03 → 04.
- Keep the cheatsheet and schema-gotchas open as you go.
Principles baked in
- Runnable first. Every early query executes against seeded data — no "trust me, it works."
- One narrative. The same five demo users carry through every example.
- Schema-accurate. Real-table queries use only columns validated against the Microsoft table references.
- Tier-1 sourced. Claims link to Microsoft Learn; thresholds in hunts are tunable starting points, not gospel.
Built as world-class, practice-ready training material. Contributions welcome — keep queries schema-validated and link Tier-1 sources.
Course by Kaushik Saha. Source: sentinel/kql/README.md at ea5adab001fa. Queries checked with Microsoft.Azure.Kusto.Language 12.4.1 against schema bundle 2026.10.29.