In Azure Log Analytics workspace Workspace1 you want to view error events from the Event table. Which query should you run?
Choose an answer
Tap an option to check your answer.
Correct answer: search in (Event) "error".
Why this is the answer
The correct query uses Kusto Query Language (KQL), which is the standard for Azure Monitor Logs. The search in (Event) "error" query efficiently searches the Event table for any records containing the string "error" within any of its columns. This is a common and effective way to find specific text within a table in KQL. The other options are incorrect because: Get-Event Event | where {$.EventType == "error"} uses PowerShell syntax, not KQL. select from Event where EventType == "error" uses SQL-like syntax, not KQL. While KQL has some similarities to SQL, this specific syntax is not valid. search in (Event) | where EventType -eq "error" is syntactically incorrect. The after in (Event) is redundant and the -eq operator is not standard KQL for string comparison; == or contains would be used if filtering a specific column.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed