An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
Application Gateway logs cannot be sent to an arbitrary custom table that was manually created in Log Analytics.
To store Application Gateway logs in AGWAccessLogs instead of AzureDiagnostics, the diagnostic setting must use Resource-specific mode.
For Application Gateway, resource-specific mode writes to these dedicated tables:
- AGWAccessLogs
- AGWPerformanceLogs
- AGWFirewallLogs
Use this configuration in Azure portal:
- Open the Application Gateway resource.
- Select Diagnostic settings.
- Edit the existing setting or create a new one.
- Under Send to Log Analytics workspace, set Destination table to Resource specific.
- Select the required log categories such as Application Gateway Access Log.
- Save the setting.
Important behavior:
- In Azure Diagnostics mode, logs go to the shared AzureDiagnostics table.
- In Resource-specific mode, Application Gateway access logs go to AGWAccessLogs automatically.
- When switching to resource-specific mode, only newly selected categories use the dedicated tables; existing streams remain unchanged until reconfigured.
- Dual mode is not available within a single data flow, but multiple diagnostic settings can be used at the same time so that one sends to AzureDiagnostics and another sends to resource-specific tables.
If AGWAccessLogs is still empty after saving the setting, verify that:
- The diagnostic setting is using Resource specific, not Azure diagnostics.
- Application Gateway Access Log is selected.
- New traffic is reaching the Application Gateway after the change.