Skip to main content

View Logs

Container App Logs

Tail live logs

az containerapp logs show \
--name <app-name> \
--resource-group <resource-group> \
--follow \
--tail 100

Common apps

# Marketing site
az containerapp logs show --name agentatacktechmarketing --resource-group assistant-agent-rg --tail 50

# HITL Frontend
az containerapp logs show --name hitl-frontend --resource-group testing --tail 50

# Keycloak
az containerapp logs show --name keycloak --resource-group testing --tail 100

# OpenFGA
az containerapp logs show --name openfga --resource-group testing --tail 50

# Assistant Agent
az containerapp logs show --name assistant-agent --resource-group assistant-agent-rg --tail 100

# Review Service
az containerapp logs show --name review-service --resource-group testing --tail 50

# Ingest Service
az containerapp logs show --name ingest-service --resource-group testing --tail 50

# Router Service
az containerapp logs show --name router-service --resource-group testing --tail 50

# Config Service
az containerapp logs show --name config-service-test --resource-group testing --tail 50

Logs in the Azure Portal

  1. Go to portal.azure.com
  2. Navigate to the Container App
  3. In the left menu: Monitoring → Log stream (live) or Monitoring → Logs (query)

Log Analytics Query (KQL)

All apps send logs to Log Analytics. Example query:

ContainerAppConsoleLogs_CL
| where ContainerAppName_s == "hitl-frontend"
| where TimeGenerated > ago(1h)
| project TimeGenerated, Log_s
| order by TimeGenerated desc

Run in: portal.azure.com → Log Analytics workspaces → workspace-testingF6hg → Logs

Revision History

# See all revisions (deployments) of an app
az containerapp revision list \
--name hitl-frontend \
--resource-group testing \
--output table

Check App Status

az containerapp show \
--name hitl-frontend \
--resource-group testing \
--query '{status: properties.runningStatus, image: properties.template.containers[0].image, revision: properties.latestRevisionName}' \
-o json