QuestionQ296

VerifiedMonitor and maintain Azure resources

You have an Azure virtual machine named VM1 that runs Windows Server 2016.

You need to create an alert in Azure when more than two error events are logged to the System event log on VM1 within an hour.

Solution: You create an event subscription on VM1. You create an alert in Azure Monitor and specify VM1 as the source.

Does this satisfy the goal?

Explanation

Azure Monitor alerts on Windows guest event logs require the VM's event data to be collected into Azure Monitor, typically by using Azure Monitor Agent with a data collection rule that sends Windows Event Log entries to Log Analytics, where a log alert can count matching error events within a one-hour window. Creating an event subscription on the VM does not provide the required Azure Monitor guest event log collection path, so this solution does not meet the requirement.

Learn more

Community Discussion

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