In this section

Why KQL Matters — The Query Language Your SOC Depends On

2-3 hours · Module 0 · Free

0.1 What KQL is and why it matters for security

Kusto Query Language is the analytical language behind every security operation in the Microsoft stack. Sentinel analytics rules are KQL. Defender XDR Advanced Hunting is KQL. Workbooks, dashboards, threat hunting queries, incident investigation pivots, and automated enrichment playbooks, all KQL. The language is not a supplementary tool you use occasionally. It is the operational substrate that every investigation, detection, and report depends on.

The gap between analysts who can write KQL and those who cannot is not a skill preference (it is a capability boundary. An analyst without KQL skills can triage alerts using the portal UI, click through pre-built investigation views, and run template queries someone else wrote. When the investigation demands a question the portal cannot answer) "Has this user ever authenticated from this IP across our full retention period?" or "Did the inbox rule creation originate from the same session as the compromised sign-in?". The analyst without KQL stalls. The data exists. The query environment is open. The analyst cannot express the question.

Fourteen modules take you from the data processing fundamentals that explain how KQL evaluates queries, through every operator you need for filtering, aggregation, correlation, time-series analysis, and graph traversal, to production-grade detection rules, structured threat hunts, and operational reporting. Every concept is taught through security data. Every query runs against the tables you work with daily: SigninLogs, DeviceProcessEvents, EmailEvents, OfficeActivity, SecurityAlert. You learn KQL by investigating real attack patterns, not by querying sample datasets about website traffic.

This module is the orientation. It shows you three security questions that cannot be answered without KQL, maps the Microsoft security data model so you know where to look, identifies the core tables and their schemas, walks your first security query from blank editor to investigation result, previews the full skill progression, and sets up your lab environment. Everything here is free — no account required.

0.2 What you will learn

Six sections, each building the foundation that makes the rest of the course productive.

Section 0.1 — Three Questions You Cannot Answer Without KQL. Three concrete security scenarios from Northgate Engineering where the portal UI cannot provide the answer. Historical scope — searching the full retention period for a specific entity-IP combination. Cross-table correlation — joining SigninLogs and OfficeActivity to prove that a token theft led to inbox rule creation. Statistical baseline — computing a user's normal download volume and scoring today's activity against it. These three question categories recur in every investigation the course teaches.

Section 0.2 — The Microsoft Security Data Model. Two query surfaces (Sentinel and Defender XDR Advanced Hunting), five product families, one query language. Which product generates which telemetry. Where the schemas overlap and where they diverge. The ingestion pipeline from event generation through connector transport to queryable row. Ingestion latency and why it matters for both investigation queries and detection rules.

Section 0.3 — The Tables You Will Query Every Day. The core tables that handle the majority of security investigations. Each table profiled: what it records, key columns, retention characteristics, and the investigation questions it answers. How to discover tables in your own workspace and how to read a table schema before writing a query.

Section 0.4 — Your First Security Query. From a blank query editor to a complete investigation result. You write a query that answers a real security question — not a tutorial exercise. Line-by-line annotation explains what each operator does and why. Expected output shows what the result looks like and how to interpret each column.

Section 0.5 — What This Course Builds. The full progression across fourteen modules and four phases. Which modules build foundational operator fluency, which teach advanced analytical patterns, and which apply everything to production detection, hunting, and reporting. How to prioritize modules based on your role and immediate needs.

Section 0.6 — Setting Up Your Lab Environment. M365 Developer Tenant, Sentinel workspace, Defender XDR Advanced Hunting — everything you need to run the course exercises. Step-by-step configuration with the specific data connectors and sample data that populate the tables the course queries against.

0.3 Why KQL is the right language for security data analysis

KQL was designed for analytical workloads against large-scale telemetry data. The language processes millions of rows in seconds because the underlying Kusto engine was built for exactly this workload — time-series data generated by distributed systems at massive volume. Security telemetry is precisely this kind of data. A mid-sized organization generates tens of thousands of sign-in events, process creation events, and email events per day. An enterprise generates millions. KQL handles both scales without the analyst needing to think about indexing, query plans, or execution optimization.

The tabular data model maps directly to how security analysts think about evidence. A sign-in is a row. A process creation is a row. An email delivery is a row. Each row has columns — timestamp, user, source IP, resource, result. The analyst's question translates directly into a KQL query: filter the rows (where), shape the columns (project, extend), aggregate across rows (summarize), and join rows from different tables when the investigation spans multiple data sources (join). The mental model is immediate. The learning curve is the operators, not the paradigm.

Sentinel and Defender XDR both use KQL natively. A query written in the Sentinel Logs blade runs in Defender Advanced Hunting with minor table name adjustments. The same operators, the same functions, the same syntax. The skills transfer entirely between the two query surfaces, and both surfaces are where production security work happens — analytics rules, hunting queries, workbook visualizations, and automated enrichment.

The alternative (clicking through portal UIs and relying on pre-built content) works for the predictable 80% of triage. The other 20% requires expressing questions the portal designers did not anticipate. KQL is how you express those questions.

0.4 How to get the best from this module

Work through the sections in order. Section 0.1 (three questions) establishes why KQL matters by showing concrete investigation problems. Section 0.2 (data model) maps where the data lives. Section 0.3 (tables) profiles the specific tables you will query. Section 0.4 (first query) puts your hands on the keyboard. Section 0.5 (course overview) shows the full progression. Section 0.6 (lab setup) configures your environment.

You do not need a lab environment to start. Sections 0.1 through 0.5 are conceptual orientation with example queries you read and understand. Section 0.6 is where you configure the environment you will use from K1 onward. If you already have a Sentinel workspace or Defender XDR access, you can run the example queries in 0.4 immediately.

Estimated time: 2 to 3 hours for the full module. Two to three sections per session works well. The data model and table sections (0.2 and 0.3) are the reference material you will return to throughout the course — take time to absorb the mapping between investigation questions and tables.

0.5 Module structure

  • Section 0.1 — Three Questions You Cannot Answer Without KQL
  • Section 0.2 — The Microsoft Security Data Model
  • Section 0.3 — The Tables You Will Query Every Day
  • Section 0.4 — Your First Security Query
  • Section 0.5 — What This Course Builds
  • Section 0.6 — Setting Up Your Lab Environment

No prerequisites beyond basic familiarity with the Microsoft security portals. If you have used Sentinel or Defender XDR to triage alerts, even through the portal UI without writing queries. You have the context needed to start. Every KQL concept is explained at first use.

Go to Section 0.1 — Three Questions You Cannot Answer Without KQL to begin.

Unlock the Full Course See Full Course Agenda