Explain it simpler
KQL (Kusto Query Language) is how you ask questions of the telemetry stored by Application Insights. A query starts with a table, like a big spreadsheet of every request, and then passes it through a series of steps separated by a pipe symbol, like water flowing through filters. One step keeps only the rows you care about, such as the last hour. Another picks which columns to show. Another groups rows and counts them, for example failures per endpoint. A special helper chops time into equal slices, like five-minute buckets, so you can draw a line chart. You can also connect two tables using a shared ID, so each failed request is matched with its error. A final step turns the results into a chart.
Thirty minutes after the 3 p.m. release at Wildrose Ticketing, the error rate climbs. Your manager, Imani, pings you: "Is it the release? Which endpoint? What error? I need something to show the incident call in ten minutes." Application Insights is full of data: thousands of requests, dependencies, exceptions and log lines. Scrolling through them one by one is hopeless. What you need is a few lines of query that filter to the last hour, connect each failed request to the exception it threw, count them by endpoint and draw a chart showing exactly when the trouble began. Can you write it before the call starts?
Kusto Query Language (KQL) is how you query Application Insights and Log Analytics data. A query starts with a table name and pipes rows through a sequence of operators, each separated by |, much like a Unix shell pipeline. Each operator takes the rows from the previous step, transforms them and passes the result on, so you read a query from top to bottom as a series of steps.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 9 more sections, 7 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.