QuestionQ47

VerifiedMonitor and maintain Azure resources

You have an Azure subscription named Subscription1 that contains an Azure Log Analytics workspace named Workspace1.

You need to view the error events from a table named Event.

Which query should you run in Workspace1?

Explanation

Azure Log Analytics queries use Kusto Query Language (KQL), which starts with a table name followed by pipe operators for filtering and searching. The syntax Event | search "error" correctly queries the Event table for records containing "error". SQL syntax (option A) is invalid for KQL, the is operator (option C) is not valid equality syntax in KQL (should be ==), and PowerShell cmdlets (option D) are not used in Log Analytics queries.

Community Discussion

No comments yet. Be the first to start the discussion!