IntroductoryFree4h of content · 8 guided labs200 XP

KQL from Zero

Learn KQL from zero with a real console in your browser. Filter with where, work with dates, count with summarize, draw time series, join tables and turn a query into a Sentinel detection rule. Everything you write works the same in Microsoft Sentinel and Defender XDR. Free.

Free forever. No card, no trial, no expiry.

Preview the student experience

No login · Free interactive demo

Try demo →

8

Guided labs

Real VM with HTK Pro

4h

Of content

Labs + practice + exams + simulations

4

Modules

Progressive difficulty

2–4h

Per lab session

Unlimited restarts

HackTheKnowledge logoWhat's included
  • The full course: written lessons with diagrams
  • Per-module exams to check what stuck
  • Guided walkthrough of a real phishing email
  • Submit the final assignment
  • Lifetime access, no card required
  • Isolated lab VM and graded certificate: HTK Pro
0 €

No card required

Start free →

In shortKQL from Zero is a free course that teaches KQL (Kusto Query Language), the query language of Microsoft Sentinel, Defender XDR and Azure Monitor, from scratch: filtering with where, working with dates, summarize, time series with bin and render, join, and turning a query into a detection rule. You practise in a real KQL console in the browser on a week of sample logs, with no Azure subscription, in English and Spanish.

Try it right here

Try it with real infection dataPro

Unlock datasets from real incidents with investigation guides that use KQL, Wireshark and more.

Lab tools you will use

KQLLab toolMicrosoft SentinelLab toolDefender XDRLab toolKQLLab toolMicrosoft SentinelLab toolDefender XDRLab tool
summarizeLab tooljoinLab toolAnalytics rulesLab toolsummarizeLab tooljoinLab toolAnalytics rulesLab tool

Before you start — quick answers

Yes. Every lesson and the first lab are free with an account, no card. The rest of the labs, the simulator, the final exam and the instructor-reviewed assignment, which are what earn the certificate, come with HTK Pro, a subscription you can cancel whenever you like.

No. The course has its own KQL console in the browser with sample data. The tables and columns are named as in Sentinel and Defender, so whatever you learn works there unchanged when you get access.

No. The course starts from what a table is. If you know SQL it will feel familiar, but KQL reads top to bottom with pipes, which most people find easier.

where, project, extend, sort, top, take, count, distinct, search, summarize with count, dcount, countif, make_set and arg_max, bin, render, let, union and join (inner, leftouter, leftanti), plus date and text functions such as ago, between, datetime_diff, split, extract and iff.

Course Syllabus

4 modules · 4h of content

Each phase maps to a module in this course. Scroll to see how the curriculum builds, module by module.

1

Module 1

Introductory

First steps with KQL

  • •What KQL is and where it is used
  • •Your first query: tables, rows and basic operators
  • •Filtering with where
  • •Lab: first look at the Sentinel and Defender tables
  • •The course tables: what each one stores
  • •Pro lab: analysing failed sign-ins and account lockouts
2

Module 2

Introductory

Shaping the results

  • •Working with time
  • •Choosing and creating columns: project and extend
  • •Pro lab: detecting impossible travel in SigninLogs
  • •Searching text, distinct values and variables
  • •Pro lab: pinning down a phishing campaign in time
3

Module 3

Introductory

Counting and finding patterns

  • •Grouping with summarize
  • •Time series: bin and render
  • •Pro lab: detecting a password spray with summarize
  • •Finding the odd one out: frequencies and thresholds
  • •Pro lab: hunting a command-and-control beacon with KQL
4

Module 4

Introductory

Joining tables and detecting

  • •Joining tables with join
  • •Pro lab: correlating email, identity and devices with join
  • •Long, readable queries: let, union and good practice
  • •From query to detection rule
  • •Pro final lab: rebuilding an incident from phishing to log clearing
  • •How to investigate an incident with KQL: a pivoting method
  • •Pro simulator: investigate three real incidents with KQL
  • •Pro final assignment: incident investigation report with KQL, reviewed by an instructor

What you will learn

  • Read and write KQL queries in Microsoft Sentinel and Defender XDR
  • Filter by text, numbers and time without losing results to case
  • Create and transform columns with extend, split, extract and iff
  • Count, group and draw time series with summarize, bin and render
  • Join tables with join and build long queries with let and union
  • Turn a hunting query into a scheduled detection rule

Hands-on Lab

Every module ends with labs in the KQL console: a week of sign-ins, processes, network connections and email from a fictional company, a short brief and questions checked as you answer. The first one is free with an account; HTK Pro opens the rest and the simulator with three incidents, including an impossible-travel alert, a beaconing hunt and the final incident from phishing email to a wiped security log.

8⬡ 8 guided labs
2–4hSession window
UnlimitedRestarts
AutoFlag validation
Experience a lab preview →

Requirements

  • ·No programming or database experience
  • ·A computer with a browser. No Azure subscription needed
  • ·A few free evenings

What's free, and what HTK Pro adds

Our subscriptions give you unlimited access and let you get the most out of every resource on the platform.

Free

Free

To start from zero

0 €

  • The free courses, with every lesson in writing
  • Some videos in each module
  • Module exams, with unlimited attempts
  • Lesson practices and most in-browser labs
  • Daily streak with rewards
Most popular3 months free with yearly

HTK Pro

To complete the track

€14.99€11.24/mo

€134.91 a year, in one payment · 3 months free

🔒 Secure payment · Cancel anytime

Everything in Free, plus…

  • Every new career-track course
  • Video lessons with visual demos: watch it done before you do it
  • Every practice and in-browser lab
  • Capstone cases in the simulator
  • The real-machine lab of the free courses
  • An instructor grades your final assignment: certificate for each course and the track
  • Guide to landing your first job
  • See it inside
All inclusive3 months free with yearly

HTK Ultimate

To go beyond the track

€34.99€26.24/mo

€314.91 a year, in one payment · 3 months free

🔒 Secure payment · Cancel anytime

Everything in Pro, plus…

  • Full professional courses, Beginner and Intermediate: Windows Malware and Phishing with OSINT
  • Guided labs on a real, isolated machine, with unlimited resets
  • Capstone cases on a real machine
  • Module exams and HTK certificates for each level
  • An instructor personally reviews your reports and practicals
  • Private Discord community and direct instructor support
  • See it inside

Everything you unlock with HTK Pro

No marketing screenshots: each piece, as it actually looks inside. Click a tab or let them play.

Every lesson, as a video tooIncluded in HTK Pro

With HTK Pro, one click turns the lesson into a video explained step by step: the log scrolls, the counter climbs and you get at first sight what takes three reads in text. What you see, you remember.

Module 2 · Logs and authentication

What auth.log records

VideoText

You're reading this lesson. The concepts are the same as in the video.

Every SSH login attempt leaves a line in /var/log/auth.log. When one IP fails hundreds of times in a few minutes it's almost never a typo: it's a brute-force attack.

Nov  7 03:12:41 vpn sshd[2214]: Failed password for invalid user rrhh01 from 203.0.113.45
Nov  7 03:12:42 vpn sshd[2214]: Failed password for invalid user rrhh02 from 203.0.113.45

In this task you'll count failures per IP and decide which one to block.

Chapter 2 · Reading auth.log

Nov 7 03:12:40 vpn sshd[2214]: Failed password for invalid user rrhh01 from 203.0.113.45

Nov 7 03:12:41 vpn sshd[2214]: Failed password for invalid user rrhh02 from 203.0.113.45

Nov 7 03:12:42 vpn sshd[2214]: Failed password for invalid user rrhh03 from 198.51.100.23

Nov 7 03:12:43 vpn sshd[2214]: Failed password for invalid user rrhh04 from 203.0.113.45

Nov 7 03:12:44 vpn sshd[2214]: Failed password for invalid user rrhh05 from 203.0.113.45

Nov 7 03:12:45 vpn sshd[2214]: Failed password for invalid user rrhh06 from 203.0.113.45

Nov 7 03:12:46 vpn sshd[2214]: Failed password for invalid user rrhh07 from 192.0.2.14

Nov 7 03:12:47 vpn sshd[2214]: Failed password for invalid user rrhh08 from 203.0.113.45

Nov 7 03:12:48 vpn sshd[2214]: Failed password for invalid user rrhh09 from 203.0.113.45

Nov 7 03:12:49 vpn sshd[2214]: Failed password for invalid user rrhh01 from 203.0.113.45

Nov 7 03:12:50 vpn sshd[2214]: Failed password for invalid user rrhh02 from 198.51.100.23

Nov 7 03:12:51 vpn sshd[2214]: Failed password for invalid user rrhh03 from 203.0.113.45

Nov 7 03:12:52 vpn sshd[2214]: Failed password for invalid user rrhh04 from 203.0.113.45

Nov 7 03:12:53 vpn sshd[2214]: Failed password for invalid user rrhh05 from 203.0.113.45

Nov 7 03:12:54 vpn sshd[2214]: Failed password for invalid user rrhh06 from 192.0.2.14

Nov 7 03:12:55 vpn sshd[2214]: Failed password for invalid user rrhh07 from 203.0.113.45

203.0.113.45

0

failed attempts

Each line is one SSH login attempt.

1:12 / 6:40CC
  • An instructor grades your final assignment
  • Verifiable certificate for LinkedIn
  • Every free course in full

Work like a real SOC

An alert queue with teammates, statuses and SLAs: you assign the alert, follow the playbook, read the evidence, give the verdict and write the report. This is what it looks like inside.

This is the simulator from the courses, driven by a script: you can pause it and step through it. With a free account you solve it yourself.

Frequently Asked Questions

Complete answers about this course, labs, certificates, and refunds

Yes. Every lesson and the first lab are free with an account, no card. The rest of the labs, the simulator, the final exam and the instructor-reviewed assignment, which are what earn the certificate, come with HTK Pro, a subscription you can cancel whenever you like.

No. The course has its own KQL console in the browser with sample data. The tables and columns are named as in Sentinel and Defender, so whatever you learn works there unchanged when you get access.

No. The course starts from what a table is. If you know SQL it will feel familiar, but KQL reads top to bottom with pipes, which most people find easier.

where, project, extend, sort, top, take, count, distinct, search, summarize with count, dcount, countif, make_set and arg_max, bin, render, let, union and join (inner, leftouter, leftanti), plus date and text functions such as ago, between, datetime_diff, split, extract and iff.

This one starts from zero and is for anyone who queries logs: SOC analysts, administrators or engineers. KQL for threat hunting, in the Threat Hunting Analyst track, assumes you already know the basics and focuses on hunting.

Yes, in the free KQL playground: the same console and data, no account. The course adds the lessons, the guided labs and the final exam.

After this course

Then pick the specialism that fits you

This course exists to help you choose with some basis instead of guessing. Once you know which side of the field appeals to you, each learning path takes you from beginner to intermediate with the labs to match.

Explore learning paths →
Ready to level up?

Start learning cybersecurity today

About 4 h, no prior knowledge, and a real phishing email to take apart. Create an account and begin.

FreeNo card required
No card requiredLifetime accessStart in under a minute