Skip to content

Latest Errors and Exceptions

Use this query for quick inspection of recent application exceptions and error logs.

Data Source

Table Schema Note
ContainerAppConsoleLogs_CL Legacy schema. If empty, try ContainerAppConsoleLogs (non-_CL).

Query Pipeline

flowchart TD
    A[Filter by app] --> B[Filter error patterns] --> C[Project key runtime fields] --> D[Sort by newest]

Query

let AppName = "my-container-app";
ContainerAppConsoleLogs_CL
| where ContainerAppName_s == AppName
| where Log_s has_any ("error", "exception", "traceback", "failed")
| project TimeGenerated, RevisionName_s, Log_s
| order by TimeGenerated desc

Example Output

TimeGenerated RevisionName_s Log_s Stream
2026-04-12T05:59:05.795Z ca-cakqltest-54kxmtjeuidri--nu8o2ji 100.100.0.125 - - [12/Apr/2026:05:59:04 +0000] "GET /api/exceptions/test-error HTTP/1.1" 500 173 "-" "curl/8.5.0" stdout

Interpretation Notes

  • Capture the first exception after deployment for root-cause context.
  • Compare error text across revisions to identify rollout regressions.
  • Normal pattern: occasional warnings, not sustained exception streams.

Limitations

  • Requires app to emit logs to stdout/stderr.
  • Large multi-line traces may be split across rows.

See Also