Introduction to Kusto Query Language (KQL) in Azure Log Analytics
Learn KQL fundamentals by querying real log data in Azure Log Analytics using search, where, project, and summarize operators.

Lab overview
Kusto Query Language (KQL) is the primary query language used across Azure Monitor, Microsoft Sentinel, Azure Data Explorer, and Microsoft Defender. In this lab, you will learn KQL fundamentals by querying real log data inside an Azure Log Analytics workspace. Starting with basic operators like search, where, and project, you will progress to aggregating data with summarize and visualizing results with render — all within the Azure Portal's Logs query editor.
Objectives
Upon completion of this beginner level lab, you will be able to:
- Navigate to a Log Analytics workspace and use the Logs query editor
- Write basic KQL queries using
search,where,project, andtakeoperators - Filter, sort, and format query results using
extend,sort by, andtop - Aggregate data using
summarizewithcount(),avg(), andbin() - Create time-based queries using
ago()and render visual charts
Who is this lab for?
This lab is designed for:
- Cloud engineers getting started with Azure monitoring
- Security analysts learning log analysis fundamentals
- DevOps engineers who need to query Azure Monitor logs
- IT administrators managing Azure environments
Verified against your live environment
An automated validation engine inspects your actual resources and configurations as you work. Completion means the task was performed — not multiple choice, real-world proficiency.
More labs like this
Conduct a Threat Hunt Using Kusto Query Language (KQL)
Hunt for indicators of compromise in security logs using advanced KQL queries mapped to MITRE ATT&CK tactics.
Creating a Web App on Azure App Service using Azure Portal
Learn how to create, configure, and deploy a web application using Azure App Service through the Azure Portal's interface.
Creating and Deploying Azure Functions using Azure Functions Core Tools
In this lab, you will learn how to create and deploy Azure Functions using Azure Functions Core Tools.
Related reading
Environment
Every lab includes
- Real environment, pre-credentialed
- Automated checks on every step
- Isolated sandbox, auto cleanup
- AI-recommended next steps
Lab curriculum
- 01
Logging into Azure Account using Azure Portal
- 02
Navigating to Log Analytics and Writing Basic KQL Queries
1 automated check
- 03
Aggregating and Visualizing Data with KQL
1 automated check
Skills validated
Not the lab you were looking for?
Browse 150+ hands-on labs across AWS, Azure, Kubernetes, Docker, and cloud security.