Share via

Azure Container Apps: No logs/metrics flowing to Log Analytics or Storage (westus3)

Andrew Cuncannan (Admin) 20 Reputation points
2025-09-02T19:20:10.5233333+00:00

Issue Summary

Azure Container Apps environment is not delivering diagnostic logs or metrics to Log Analytics or Storage, despite correct diagnostic settings and traffic generation.

Environment

  • Resource Group: <resource-group-name>
  • Container App: <container-app-name>
  • Environment: <aca-environment-name> in region <region>
  • Log Analytics Workspaces tested:
    • <original-law-name> (original)
    • <new-law-name> (new, isolated test)
  • Storage Account tested: <storage-account-name>

Problem Details

  • Diagnostic settings are configured at the environment scope:
    • ContainerAppConsoleLogs (enabled)
    • ContainerAppSystemLogs (enabled)
    • AllMetrics (enabled)
  • Multiple destinations tested:
    • Existing Log Analytics workspace
    • New Log Analytics workspace (to rule out LAW misconfiguration)
    • New Storage account (to rule out LAW pipeline issues)
  • Synthetic traffic (hundreds of requests) generated against the Container App ingress FQDN.

Observations

  • Log Analytics: Queries return 0 rows for ContainerAppConsoleLogs, ContainerAppSystemLogs, and AzureMetrics. Both the original LAW and the new test LAW show no ingestion.
  • Storage Account: Even after extended polling, no insights-logs-* or insights-metrics-* containers were created.
  • Diagnostic Settings Validation: Confirmed via CLI that the environment has multiple diagnostic settings pointing to LAW and Storage, with categories enabled.

Steps Already Taken

  1. Verified diagnostic settings JSON (categories correctly enabled).
  2. Tested both LAW and Storage as sinks.
  3. Ran isolation test with new LAW — still no logs.
  4. Burst traffic against Container App ingress endpoint.
  5. Waited for ingestion (LAW >10 minutes, Storage >6 minutes).

Request

This appears to be a platform-level ingestion issue in the specified region for Azure Container Apps environment diagnostics.

Please confirm whether this is a known issue, and if not, help investigate why no logs or metrics are flowing from ACA → LAW/Storage despite valid configuration.

Azure Container Apps
Azure Container Apps

An Azure service that provides a general-purpose, serverless container platform.


1 answer

Sort by: Most helpful
  1. Bharath Y P 9,810 Reputation points Microsoft External Staff Moderator
    2025-09-02T23:01:19.9733333+00:00

    Hello Andrew Cuncannan (Admin),

    You're facing an issue where the Azure Container Apps (ACA) environment fails to deliver diagnostic logs or metrics to Log Analytics Workspaces (LAW) or Azure Storage, even though diagnostic settings are correctly configured, multiple destinations have been tested, and synthetic traffic has been generated.

    Here are some common reasons why logs might be missing:

    • Diagnostic logs are only ingested if container apps emit logs and system logs are generated.
    • This may occur when the Log Destination setting of an Azure Container Apps environment is modified, for example, switching between "Don't save logs" and "Azure Log Analytics." The issue specifically affects container apps that were already deployed in the environment prior to the change. These existing apps may stop sending logs as expected. In contrast, newly created container apps that deployed after the Log Destination is set to Log Analytics continue to emit logs correctly, unless the environment’s log destination is changed again.

    Additionally, confirm the following settings to validate that the configuration is correctly applied:

    1. Verify the Container Apps Environment logging option is correctly configured.

    • Go to azure portal.
    • Open your Container Apps Environment > monitoring > logging option
    • Verify that you selected the logs destination as Azure log analytics and check the configuration User's image
    1. Double-check diagnostic settings exist and are correctly set at the Container Apps Environment level for:
    • Logs: ContainerAppConsoleLogs, ContainerAppSystemLogs
    • Metrics: AllMetrics
    1. Run Log Analytics queries for your container app across the correct workspace using:
    • ContainerAppConsoleLogs_CL :
    ContainerAppConsoleLogs_CL
    | where ContainerAppName_s == "<Your App name>"
    
    • ContainerAppSystemLogs_CL
    ContainerAppSystemLogs_CL
    | where ContainerAppName_s == "<Your App name>"
    
    • AzureMetrics
    AzureMetrics | where ResourceId contains
    /subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.App/managedEnvironments/<environment-name> | order by TimeGenerated desc
    

    Check these queries and see if you can see any of the logs for your container app

    Please confirm if this is helpful and please let us know if you need further assistance.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.