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?
A.
Get-Event Event | where {$_.EventType ""eq "error"}
B.
Get-Event Event | where {$_.EventType == "error"}
C.
search in (Event) * | where EventType ""eq "error"
Suggested Answer:D🗳️
To search a term in a specific table, add in (table-name) just after the search operator Reference: https://docs.microsoft.com/en-us/azure/azure-monitor/log-query/search-queries https://docs.microsoft.com/en-us/azure/azure-monitor/log-query/get-started-portal
Checked the official document. None of the query is right. The right one is: Event | where EventLevelName == "error"
https://docs.microsoft.com/en-us/azure/azure-monitor/agents/data-sources-windows-events
F is the only one matches the Kusto query syntax. There is no search syntax in query, Check https://docs.microsoft.com/en-us/azure/data-explorer/kusto/query/tutorial?pivots=azuremonitor
D is correct, look at here https://docs.microsoft.com/en-us/azure/azure-monitor/log-query/get-started-portal#:~:text=To%20open%20a%20Log%20Analytics,Monitor%20left%20navigation%2C%20select%20Logs.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
amehim
Highly Voted 3 years, 1 month agoEricTheGreat
Highly Voted 3 years, 1 month agoLkk51
Most Recent 1 year, 11 months agoMountainW
2 years, 2 months agoMountainW
2 years, 2 months agoZUMY
2 years, 2 months agotoniiv
2 years, 3 months agoI
2 years, 3 months agomikewallace8372
2 years, 4 months agoaryise
2 years, 6 months agoJohnAvlakiotis
2 years, 6 months agoJohnAvlakiotis
2 years, 6 months agosimanastasiya
2 years, 6 months agoAjayhub
2 years, 6 months agoShades
2 years, 10 months agowazouskix
2 years, 11 months agoDTsg
2 years, 11 months agosenseibrutal
2 years, 11 months ago