Collect the last 30 minutes of agent-manager logs

  1. In the Azure portal, open Container Apps → agent-manager.

  2. Select Monitoring → Logs. If Logs is disabled because the environment uses Azure Monitor as its logging destination, open the destination Log Analytics workspace → Logs instead. You can identify the destination through the environment’s Monitoring → Diagnostic settings. (learn.microsoft.com)

  3. Switch to KQL mode if necessary and paste this query, using the newer table format: (learn.microsoft.com)

    ContainerAppConsoleLogs
    | where TimeGenerated >= ago(30m)
    | where ContainerAppName == "agent-manager"
    | where Log !has "/api/v1/health"
    | order by TimeGenerated asc
    
  4. Click Run to retrieve the matching logs.

  5. Select Export → Export to CSV, choosing all columns if offered, to retain the log timestamps and container/revision details. (learn.microsoft.com)

Fallback: older table format

If ContainerAppConsoleLogs is not found, use the legacy table and column names: (learn.microsoft.com)

ContainerAppConsoleLogs_CL
| where TimeGenerated >= ago(30m)
| where ContainerAppName_s == "agent-manager"
| where Log_s !has "/api/v1/health"
| order by TimeGenerated asc