Skip to content

Commit ed10ec2

Browse files
[ACA: log-monitoring_freshness]: Verified the article, reviewed the content, and fixed all editorial issues. Updated ms.date w.r.t freshness pass.
1 parent 03a9031 commit ed10ec2

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

articles/container-apps/log-monitoring.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ services: container-apps
55
author: craigshoemaker
66
ms.service: azure-container-apps
77
ms.topic: how-to
8-
ms.date: 08/30/2022
8+
ms.date: 04/17/2025
99
ms.author: cshoe
1010
---
1111

1212
# Monitor logs in Azure Container Apps with Log Analytics
1313

14-
Azure Container Apps is integrated with Azure Monitor Log Analytics to monitor and analyze your container app's logs. When selected as your log monitoring solution, your Container Apps environment includes a Log Analytics workspace that provides a common place to store the system and application log data from all container apps running in the environment.
14+
Azure Container Apps is integrated with Azure Monitor Log Analytics to monitor and analyze your container app's logs. When selected as your log monitoring solution, your Container Apps environment includes a Log Analytics workspace that provides a common place to store the system and application log data from all container apps running in the environment.
1515

1616
Log entries are accessible by querying Log Analytics tables through the Azure portal or a command shell using the [Azure CLI](/cli/azure/monitor/log-analytics).
1717

18-
There are two types of logs for Container Apps.
18+
Azure Container Apps provides two types of logs to help you monitor and troubleshoot:
1919

20-
- Console logs, which are emitted by your app.
21-
- System logs, which are emitted by the Container Apps service.
20+
- Console logs - Your application generates these logs.
21+
- System logs - The Container Apps service generates these logs.
2222

2323

2424
## System Logs
2525

26-
The Container Apps service provides system log messages at the container app level. System logs emit the following messages:
26+
The Container Apps service provides system log messages at the container app level. System logs emit the following messages:
2727

2828
| Source | Type | Message |
2929
|---------|------|---------|
@@ -52,10 +52,10 @@ The system log data is accessible by querying the `ContainerAppSystemLogs_CL` ta
5252

5353
## Console Logs
5454

55-
Console logs originate from the `stderr` and `stdout` messages from the containers in your container app and Dapr sidecars. You can view console logs by querying the `ContainerAppConsoleLogs_CL` table.
55+
Console logs originate from the `stderr` and `stdout` messages from the containers in your container app and Dapr sidecars. You can view console logs by querying the `ContainerAppConsoleLogs_CL` table.
5656

5757
> [!TIP]
58-
> Instrumenting your code with well-defined log messages can help you to understand how your code is performing and to debug issues. To learn more about best practices refer to [Design for operations](/azure/architecture/guide/design-principles/design-for-operations).
58+
> Instrumenting your code with well-defined log messages can help you to understand how your code is performing and to debug issues. To learn more about best practices, refer to [Design for operations](/azure/architecture/guide/design-principles/design-for-operations).
5959
6060
The most commonly used Container Apps specific columns in ContainerAppConsoleLogs_CL include:
6161

@@ -75,13 +75,13 @@ Log Analytics is a tool in the Azure portal that you can use to view and analyze
7575

7676
### Azure portal
7777

78-
Start Log Analytics from **Logs** in the sidebar menu on your container app page. You can also start Log Analytics from **Monitor>Logs**.
78+
Start Log Analytics from **Logs** in the sidebar menu on your container app page. You can also start Log Analytics from **Monitor>Logs**.
7979

80-
You can query the logs using the tables listed in the **CustomLogs** category **Tables** tab. The tables in this category are the `ContainerAppSystemlogs_CL` and `ContainerAppConsoleLogs_CL` tables.
80+
You can query the logs using the tables listed in the **CustomLogs** category **Tables** tab. The tables in this category are the `ContainerAppSystemlogs_CL` and `ContainerAppConsoleLogs_CL` tables.
8181

8282
:::image type="content" source="media/observability/log-analytics-query-page.png" alt-text="Screenshot of the Log Analytics custom log tables.":::
8383

84-
Below is a Kusto query that displays console log entries for the container app named *album-api*.
84+
The following Kusto query displays console log entries for the container app named *album-api*.
8585

8686
```kusto
8787
ContainerAppConsoleLogs_CL
@@ -90,7 +90,7 @@ ContainerAppConsoleLogs_CL
9090
| take 100
9191
```
9292

93-
Below is a Kusto query that displays system log entries for the container app named *album-api*.
93+
The following Kusto query displays system log entries for the container app named *album-api*.
9494

9595
```kusto
9696
ContainerAppSystemLogs_CL
@@ -103,9 +103,9 @@ For more information regarding Log Analytics and log queries, see the [Log Analy
103103

104104
### Azure CLI/PowerShell
105105

106-
Container Apps logs can be queried using the [Azure CLI](/cli/azure/monitor/log-analytics).
106+
Container Apps logs can be queried using the [Azure CLI](/cli/azure/monitor/log-analytics).
107107

108-
These example Azure CLI queries output a table containing log records for the container app name **album-api**. The table columns are specified by the parameters after the `project` operator. The `$WORKSPACE_CUSTOMER_ID` variable contains the GUID of the Log Analytics workspace.
108+
These example Azure CLI queries output a table containing log records for the container app name **album-api**. The parameters after the `project` operator specify the table columns. The `$WORKSPACE_CUSTOMER_ID` variable contains the GUID of the Log Analytics workspace.
109109

110110

111111
This example queries the `ContainerAppConsoleLogs_CL` table:

0 commit comments

Comments
 (0)