Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Interrogate logs using basic Kusto Query Language (KQL) queries

A worked example

Single answer

You are writing a basic log query in Log Analytics. The query starts with a table name and then applies a where operator and a count operator.

Which character do you place between operators so that KQL passes the output of one operator as the input to the next operator?

Choose one answer
Why

In this query, the pipeline starts with a table name. Each pipe passes tabular data to the next operator. Data is filtered or reshaped at each step and then handed on to the following operator. A semicolon separates complete query statements, and a leading dot identifies a management command rather than a query.

  • Not correct: ; (semicolon). The semicolon separates whole query statements, such as a let statement and a tabular expression statement. It does not chain operators inside one statement.
  • Not correct: . (dot). A leading dot marks a management command, such as .show tables. A query cannot start with it, and it does not chain query operators.
  • Correct: | (pipe). Operators in a tabular expression statement are sequenced by the pipe. The output of each operator is piped into the following operator.
  • Not correct: , (comma). Commas separate items within a single operator, such as the grouping columns in summarize by ObjectName, CounterName. They do not pass results between operators.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free