Exploring Query Statement and Function Types in Kusto Query Language (KQL)

Lab Steps

lock
Logging in to the Microsoft Azure Portal
lock
Creating Query using Let Statement in KQL
lock
Creating Reusable Log Analytics Query Function

Ready for the real environment experience?

DifficultyIntermediate
Time Limit1h
Students22
Ratings
5/5
starstarstarstarstar

Description

Kusto Query Language (KQL) is a powerful pipeline-driven, read-only query language that enables the queries against the azure logs to be easier and straightforward. Query statements are a core functionality that provides rich log search capabilities to understand the captured raw data. The statements in KQL support many constructs that help you create maintainable and reuseable queries.

In this hands-on lab, you will learn how to write let statements in the KQL editor and create stored functions. You will then use the stored function to build the final query.

Learning Objectives

Upon completion of this intermediate-level lab, you will be able to:

  • Understand KQL query let statements
  • Understand expressions supported by let statements
  • Understand different functions types supported by KQL
  • Create stored functions and use them as a reference

Intended Audience

  • Candidates for Azure Administrator Exam
  • Cloud Architects
  • Data Engineers
  • Software Engineers

Prerequisites

Familiarity with the following will be beneficial but is not required:

  • Azure Log Analytics
  • Understanding SQL or similar query commands

The following lab can be used to fulfill the prerequisite:

Environment before
PREVIEW
arrow_forward
Environment after
PREVIEW
About the Author
Students2930
Labs29
Courses1
Learning paths2

Parveen is an Azure advocate with previous experience in the professional consulting services industries. He specializes in infrastructure and DevOps with a wide range of knowledge in security and access management. He is also an Azure Certified - DevOps Engineer Expert, Security Engineer, Developer Associate, Administrator Associate, CompTIA Certified - Network+, Security+, and AWS Cloud Practitioner.
Parveen enjoys writing about cloud technologies and sharing the knowledge with the community to help students upskill in the cloud.