You have an Azure subscription that contains an Azure Virtual Network Gateway named `VNetGW1` and an Azure Storage account named `storeaudit1`.
You need to configure diagnostic logging for `VNetGW1` to meet the following requirements:
1. Stream VPN tunnel connectivity logs (`TunnelDiagnosticLog`) to an Azure Event Hub to be consumed by a third-party security information and event management (SIEM) tool.
2. Archive gateway routing logs (`RouteDiagnosticLog`) to `storeaudit1` for long-term audit compliance.
3. Minimize ingestion and storage costs by ensuring that no log data is sent to a destination where it is not required.
Which configuration should you implement to meet the requirements?
- Create two diagnostic settings: one that sends TunnelDiagnosticLog to the Event Hub, and another that sends RouteDiagnosticLog to storeaudit1.Cevap
- BCreate a single diagnostic setting that sends both TunnelDiagnosticLog and RouteDiagnosticLog to both the Event Hub and storeaudit1.
- CCreate a single diagnostic setting that sends TunnelDiagnosticLog to the Event Hub, and configure an Azure Storage Lifecycle Management policy on storeaudit1 to import the RouteDiagnosticLog from the gateway.
- DCreate a single diagnostic setting that sends both TunnelDiagnosticLog and RouteDiagnosticLog to storeaudit1, and assign the Storage Blob Data Reader role to the Event Hub.
Cevap
Create two separate diagnostic settings: one to send TunnelDiagnosticLog to the Event Hub, and a second to send RouteDiagnosticLog to the storage account.
The correct configuration is to create two separate diagnostic settings. In Azure Monitor, diagnostic settings apply all selected log categories to all configured destinations. If a single diagnostic setting were used to target both the Event Hub and the storage account while selecting both log categories, both types of logs would be duplicated across both destinations. To avoid data duplication and minimize costs, each log category must be routed to its respective destination via its own dedicated diagnostic setting.
Adım Adım Çözüm
Anahtar Kavram
Diagnostic settings routing behavior and multi-destination configuration