Container Apps Log Stream
| Document status | 35 - Reviewed |
|---|
The Azure Container Apps Log Stream provides real-time access to container logs directly from the Azure Portal. This is invaluable for debugging issues, monitoring application behavior, and viewing logs as they are written.
Accessing Log Stream
Via Azure Portal
- Navigate to Azure Portal
- In the search field, type the container app name (e.g.,
ec-<environment>-<customer>-ecc-ca) - Click on the container app
- In the left menu, expand Monitoring
- Click Log stream
Selecting the Container
The Log Stream view allows you to select which container to monitor:
| Container | Description |
|---|---|
| app container | Your application container (e.g., ecc, dmc, nts, client) - shows application logs |
| daprd | The Dapr sidecar container - shows Dapr runtime logs, service invocations, and mTLS handshakes |
To switch containers:
- Use the Container dropdown at the top of the Log Stream view
- Select the desired container
Common Use Cases
Debugging Application Issues
Select the app container to view:
- Application startup logs
- HTTP request/response logs
- Exception stack traces
- Custom log messages from the code
Debugging Dapr Issues
Select the daprd container to view:
- Dapr sidecar initialization
- Service-to-service invocation logs
- Component loading (pub/sub, state stores)
Tips for Effective Log Streaming
| Tip | Description |
|---|---|
| Use log levels | Set logLevel: debug in Dapr configuration for verbose output during troubleshooting |
| Filter by replica | If running multiple replicas, select a specific replica to focus on |
| Timestamps | Logs include timestamps - useful for correlating events across services |
| Reconnection | The stream may disconnect after inactivity; refresh the page to reconnect |
Alternative: Azure CLI
You can also stream logs using the Azure CLI:
# Stream application container logs
az containerapp logs show \
--name ec-<environment>-<customer>-ecc-ca \
--resource-group ec-<environment>-<customer>-apps-rg \
--type console \
--follow
# Stream system (Dapr sidecar) logs
az containerapp logs show \
--name ec-<environment>-<customer>-ecc-ca \
--resource-group ec-<environment>-<customer>-apps-rg \
--type system \
--follow
| Parameter | Description |
|---|---|
--type console | Application container logs |
--type system | Dapr sidecar and system logs |
--follow | Continuously stream new logs |