QuestionQ184

VerifiedMonitor and maintain Azure resources

You have an Azure subscription. The subscription contains virtual machines that run Windows Server.

You have a data collection rule (DCR) named Rule1.

You plan to use the Azure Monitor Agent to collect events from Windows System event logs.

You only need to collect system events that have an ID of 1001.

Which type of query should you use for the data source in Rule1?

Explanation

For Azure Monitor Agent, a DCR Windows Event Logs data source filters collected Windows events by using XPath queries. Microsoft Learn specifies that custom Windows event filtering in a DCR uses entries in the form LogName!XPathQuery, and it gives examples such as filtering the System log by EventID. Therefore, to collect only System events with ID 1001, the required query type is XPath.

Learn more

Community Discussion

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