Bitzu

AZ-305 ยท Logging and monitoring design

Collecting VM and hybrid logs with data collection rules

Azure Monitor Agent with data collection rules for Azure VMs and Azure Arc-enabled servers, filtering and transforming data at ingestion, replacing the legacy Log Analytics agent.

Key points

  • Azure Monitor Agent (AMA) collects guest OS data (Windows events, Syslog, counters, text and IIS logs) from Azure VMs and, through Azure Arc, on-premises and other-cloud servers.
  • Data collection rules (DCRs) define what, how and where; one DCR configures many agents.
  • transformKql filters rows or drops columns before storage.
  • Log Analytics agent retired August 2024; AMA is free, you pay for ingested data.

Source: https://learn.microsoft.com/en-us/azure/azure-monitor/agents/azure-monitor-agent-overview

Practice questions

Single choice

What tells Azure Monitor Agent which data to collect and where to send it?

  1. A diagnostic setting on the VM
  2. A data collection rule (DCR)
  3. An action group
  4. An Azure Monitor workbook
Show answer

Answer: B. A data collection rule (DCR)

AMA retrieves the data collection rules associated with the machine and applies them. Diagnostic settings route platform logs from Azure resources, not guest OS data, and action groups and workbooks have nothing to do with collection.

Select all that apply

Which of these can a data collection rule used by Azure Monitor Agent define?

  1. Data sources such as Windows events or performance counters
  2. Destinations such as a Log Analytics workspace
  3. A KQL transformation that filters rows before storage
  4. The CPU threshold that should fire an alert
  5. The installation of the agent on new machines
Show answer

Answer: A. Data sources such as Windows events or performance counters, B. Destinations such as a Log Analytics workspace, C. A KQL transformation that filters rows before storage

A DCR defines the data sources to collect, the destinations, and optional transformations that filter or modify data before storage. Alert thresholds belong to alert rules, and installing the agent is done with the VM extension, Azure Policy or similar methods, not by the DCR.

True or false

A transformation defined in the workspace transformation DCR for the Event table is also applied to Windows events sent by Azure Monitor Agent.

Show answer

Answer: False

False. The workspace transformation DCR applies only to data that does not arrive through another DCR. AMA uses its own DCR, so its data ignores the workspace transformation; put the transformation in the DCR associated with the agent instead.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More AZ-305 topics in this module