About KQL Practice
Learn Kusto Query Language, Kusto (KQL) for short, by writing queries against realistic, fictional security logs, with practice for the SC-200 exam on top. Made by an independent developer.
How it works
- Your queries run in your browser
- Our own translator turns the supported part of KQL into SQL, and DuckDB (compiled to WebAssembly) runs it. There is no query server; your queries never leave your device.
- The data is fictional
- A small company's sign-in and audit logs, Windows security events, and endpoint process and network events, generated by a deterministic script. Names, addresses and domains are made up (documentation IP ranges,
.exampledomains). Attacks such as a password spray, an RDP brute force and a beaconing implant are planted in ordinary activity. - Time stands still
now()is fixed at 2026-06-15 12:00 UTC, the end of the dataset, soago(1d)gives the same rows for everyone.- Answers are checked by result
- Your result is compared with a reference query's result: the expected columns must be there and the rows must match. Any correct query passes, not one particular spelling. On a mismatch you see the first row that differs.
- Unsupported is said out loud
- Use an operator or function the site doesn't support yet and you get a message saying so, never a silently different result.
Verified on a real Kusto cluster
The data was loaded into a real Kusto cluster (a free Azure Data Explorer cluster). Every exercise's reference query ran there, together with every combination of options in the complete-the-query exercises: the reference answers give the same results there as here, and every wrong option is wrong there too. Every runnable example on the reference pages and on KQL vs SQL gives the same result there, in the same order where the example sorts.
Where this site's engine differed from Kusto on an edge case, the engine was fixed. The checks are re-run whenever an exercise or example changes; the latest round was in December 2026. We ran them ourselves; Microsoft has not reviewed this site.
Content
All scenarios, explanations and queries are written for this site. Some scenarios are inspired by the ideas behind public, open-source detection rules; the text, data and queries are our own. No real exam questions, ever.
Privacy
- No accounts, no cookies, no advertising, no third-party trackers.
- Progress (solved exercises, drafts, theme) is stored only in your browser's local storage.
- The site is hosted on Cloudflare Pages. Like any web host, Cloudflare receives your IP address and browser details to deliver the pages.
- To run queries, your browser downloads the DuckDB engine (about 34 MB, then cached) from jsDelivr, a public CDN for open-source packages. jsDelivr receives your IP address and browser details and learns that the request comes from this site, but not which page you are on, and never your queries or progress. The download is checked against a fixed fingerprint before it runs, so a changed file would be refused.
- Page views may be counted with Cloudflare Web Analytics, which uses no cookies and does not follow you across sites.
Disclaimer
Not affiliated with or endorsed by Microsoft. SC-200 is mentioned only to describe what the exercises help you practise for. Microsoft, Azure, Microsoft Sentinel and Microsoft Defender are trademarks of the Microsoft group of companies. Using this site does not guarantee passing an exam.
Fonts: IBM Plex Sans and IBM Plex Mono, under the SIL Open Font License 1.1.