Querying Application and Container Telemetry
This lesson explains the Application Insights tables, correlation by operation ID, container and platform log tables, and log search alerts.
Learning outcomes
After completing this lesson, you will be able to:
- Identify the Application Insights tables and their classic names.
- Explain correlation by OperationId.
- Identify container and platform log tables.
- Describe how a query becomes an alert.
Application Insights tables
Workspace-based Application Insights stores telemetry in Log Analytics tables whose names start with App. The same data appears under classic names when queries run from the Application Insights resource's own Logs page, and both forms appear in documentation and exam questions.
| Telemetry | Workspace table | Classic name | Key columns (workspace) |
|---|---|---|---|
| Incoming requests | AppRequests | requests | Name, Success, ResultCode, DurationMs, OperationId, AppRoleName |
| Outgoing calls | AppDependencies | dependencies | Target, DependencyType, Name, DurationMs, Success, OperationId |
| Exceptions | AppExceptions | exceptions | ExceptionType, OuterMessage, ProblemId, OperationId |
| Log records | AppTraces | traces | Message, SeverityLevel, OperationId |
| Custom metrics | AppMetrics | customMetrics | Name, Sum, Count |
Classic tables use lower camel case column names such as duration, success, cloud_RoleName, operation_Id and timestamp. Custom attributes from OpenTelemetry spans appear in the Properties column (customDimensions in classic tables).
Workspace and classic tables
Correlating a request end to end
Every record that belongs to one trace carries the same OperationId, which is the OpenTelemetry trace ID. Joining or unioning tables on it reconstructs what happened during a request: its dependencies, its exceptions and its log messages. join combines rows from two tables with a matching key, with kinds such as inner and leftouter, and union stacks rows from several tables.
let slow = AppRequests
| where TimeGenerated > ago(1h) and DurationMs > 3000
| project OperationId, Request = Name, RequestMs = DurationMs;
AppDependencies
| where TimeGenerated > ago(1h)
| join kind=inner slow on OperationId
| summarize Calls = count(), TotalMs = sum(DurationMs) by Request, DependencyType, Target
| order by TotalMs descThis query finds requests slower than three seconds in the last hour and shows which dependency targets consumed the most time within them, which points directly at a slow database, cache or model endpoint. Grouping by AppRoleName separates services, which is why setting the service name during instrumentation matters.
The following diagram shows how three Application Insights tables are correlated to find the cause of failed requests.

join or union?
Container and platform logs
Container platforms write to their own tables in the workspace. Container Apps console and system logs are in ContainerAppConsoleLogs_CL and ContainerAppSystemLogs_CL (or ContainerAppConsoleLogs and ContainerAppSystemLogs when routed through diagnostic settings). AKS Container insights writes container output to ContainerLogV2, Pod inventory to KubePodInventory and Kubernetes events to KubeEvents. Resource logs from services such as Key Vault, Service Bus or Cosmos DB, sent by diagnostic settings, land in AzureDiagnostics or in resource-specific tables, and platform metrics sent to a workspace land in AzureMetrics.
ContainerAppSystemLogs_CL
| where TimeGenerated > ago(2h)
| where ContainerAppName_s == "orders-api"
| where Log_s has_any ("probe", "pull", "failed")
| project TimeGenerated, RevisionName_s, Reason_s, Log_s
| order by TimeGenerated descPlatform metrics are also available without any query through metrics explorer, which is faster for standard numeric charts; KQL is the tool when metrics must be correlated with logs, filtered by custom dimensions or kept beyond metric retention.
Where the logs land
From queries to alerts
A query that detects a problem can become a log search alert: Azure Monitor runs it on a schedule, evaluates the result against a threshold, and triggers an action group that sends notifications or calls automation. Good alert queries aggregate over a window, such as failures per five minutes, rather than firing on single records.
-
Write
Develop and test the query on the Logs page, with an explicit time window.
-
Aggregate
Summarize to a value per window, such as a failure rate or a dead-letter count.
-
Alert
Create a log search alert rule with a frequency, threshold and severity.
-
Act
Attach an action group that notifies the team or starts remediation.
AppExceptions
| where TimeGenerated > ago(15m)
| summarize Count = count() by ProblemId, AppRoleName
| where Count > 10From query to alert
Which dependency causes failed answers
Since a deployment, 6% of requests to a RAG API's POST /ask operation fail with HTTP 500. The team wants to know, for failed requests in the last three hours, which dependency failed most often and the most common exception type, using workspace-based Application Insights.
The analysis correlates three tables on OperationId. First, select failed requests from AppRequests with Name == "POST /ask" and Success == false. Then join AppDependencies filtered to Success == false and summarize by Target and ResultCode, and separately join AppExceptions and summarize by ExceptionType. A result showing most failures at the Cosmos DB target with status 429 would point to throttling introduced by the deployment, such as a query that lost its partition key.
Querying AppTraces alone would show messages but not reliably which dependency failed. Averaging request duration would not identify the failing component. Searching without the OperationId join would mix in unrelated dependency failures.
Which column links an AppRequests record to the AppDependencies and AppExceptions records of the same request?
Show answer
OperationId (operation_Id in classic tables), which is the trace ID.
Exam Tips
Remember for the exam
- Workspace tables: AppRequests, AppDependencies, AppExceptions, AppTraces; classic: requests, dependencies, exceptions, traces.
- OperationId (operation_Id) is the trace ID that correlates records of one request.
- Container Apps: ContainerAppConsoleLogs_CL and ContainerAppSystemLogs_CL; AKS: ContainerLogV2, KubePodInventory, KubeEvents.
- Log search alerts run KQL on a schedule and trigger action groups.