Soru

Zorluk: OrtaAzure Monitor Metrics and Diagnostic Settings

An administrator needs to configure a diagnostic setting for an Azure Standard Load Balancer named `lb-prod-web` to analyze health probe logs. The configuration must meet the following requirements:

* Allow the team to run Kusto Query Language (KQL) queries to troubleshoot probe failures.
* Retain the log data for 180180 days.
* Minimize administrative effort and cost.

Which configuration should the administrator implement?

  1. A
    Configure the diagnostic setting to archive logs to an Azure Storage account, and configure a lifecycle management policy to delete logs after 180180 days.
  2. B
    Configure the diagnostic setting to stream logs to an Azure Event Hub, and configure the Event Hub namespace retention to 180180 days.
  3. Configure the diagnostic setting to send logs to a Log Analytics workspace, and set the data retention period on the workspace to 180180 days.Cevap
  4. D
    Configure the diagnostic setting to send logs to a Log Analytics workspace, and configure a retention policy of 180180 days in the diagnostic setting itself.

Cevap

Configure the diagnostic setting to send logs to a Log Analytics workspace, and set the data retention period on the workspace to 180180 days.
To analyze logs using KQL queries, the logs must be sent to a Log Analytics workspace. Because retention settings within the diagnostic setting resource itself are deprecated and not applied to Log Analytics workspace destinations, the retention period of 180180 days must be configured on the Log Analytics workspace itself.

Adım Adım Çözüm

1
Determine the destination that supports Kusto Query Language (KQL).
A Log Analytics workspace must be used, as Azure Storage accounts and Event Hubs do not support running KQL queries directly.
The scenario requires the team to troubleshoot probe failures using KQL queries.
2
Identify where to configure data retention for the selected destination.
The retention policy must be configured on the Log Analytics workspace itself rather than the diagnostic setting.
Retention settings (the slider) within diagnostic settings are deprecated and have no effect when streaming to a Log Analytics workspace.

Anahtar Kavram

Azure Monitor Diagnostic Settings Destinations and Retention Policies
Bu soruyu puanla