You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/container-apps/log-streaming.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,10 @@ ms.author: v-bcatherine
11
11
12
12
# View log streams in Azure Container Apps
13
13
14
-
While developing and troubleshooting your container app, it's essential to see the [application logs](logging.md) for your container app in real time. Azure Container Apps lets you stream:
14
+
While developing and troubleshooting your container app, it's essential to see the [logs](logging.md) for your container app in real time. Azure Container Apps lets you stream:
15
15
16
-
-[system logs](logging.md#system-logs) from the Container Apps environment and your container app. - container [console logs](logging.md#container-console-logs) from your container app.
16
+
-[system logs](logging.md#system-logs) from the Container Apps environment and your container app.
17
+
- container [console logs](logging.md#container-console-logs) from your container app.
17
18
18
19
Log streams are accessible through the Azure portal or the Azure CLI.
19
20
@@ -28,11 +29,11 @@ To troubleshoot issues in your container app environment, you can view the syste
28
29
1. Go to your environment page in the Azure portal.
29
30
1. Select **Log stream** under the *Monitoring* section on the sidebar menu.
30
31
31
-
:::image type="content" source="media/observability/system-log-streaming-env.png" alt-text="Screenshot of Container Apps environment system log stream page.":::
32
+
:::image type="content" source="media/observability/system-log-streaming-env.png" alt-text="Screenshot of Container Apps environment system log stream page.":::
32
33
33
34
### Container app log stream
34
35
35
-
You can view a log stream of your container apps system or console logs from your container app page.
36
+
You can view a log stream of your container app's system or console logs from your container app page.
36
37
37
38
1. Go to your container app in the Azure portal.
38
39
1. Select **Log stream** under the *Monitoring* section on the sidebar menu.
@@ -41,18 +42,18 @@ You can view a log stream of your container apps system or console logs from you
41
42
42
43
:::image type="content" source="media/observability/screenshot-log-stream-console-app.png" alt-text="Screenshot of Container Apps console log stream from app page.":::
43
44
44
-
1. To view the system log stream, select **System**. The system log stream displays the system logs for all running containers in the environment.
45
+
1. To view the system log stream, select **System**. The system log stream displays the system logs for all running containers in your container app.
45
46
46
-
:::image type="content" source="media/observability/screenshot-log-stream-system-app.png" alt-text="Screenshot of Container Apps system log stream from app page.":::
47
+
:::image type="content" source="media/observability/screenshot-log-stream-system-app.png" alt-text="Screenshot of Container Apps system log stream from app page.":::
47
48
48
49
## View log streams via the Azure CLI
49
50
50
51
You can view your container app's log streams from the Azure CLI with the `az containerapp logs show` command or your container app's environment system log stream with the `az containerapp env logs show` command.
51
52
52
53
Control the log stream with the following arguments:
53
54
54
-
-`--tail` (Default) - View the last n log messages. Values are 0-300 messages. The default is 20.
55
-
-`--follow`- View a continuous live stream of the log messages.
55
+
-`--tail` (Default) View the last n log messages. Values are 0-300 messages. The default is 20.
56
+
-`--follow` View a continuous live stream of the log messages.
56
57
57
58
### Stream Container app logs
58
59
@@ -113,7 +114,7 @@ Use `Ctrl-C` or `Cmd-C` to stop the live stream.
113
114
114
115
### View container console log stream
115
116
116
-
To connect to a container's console log stream in a container app with multiple revisions, replicas, and containers include the following parameters in the `az containerapp logs show` command.
117
+
To connect to a container's console log stream in a container app with multiple revisions, replicas, and containers, include the following parameters in the `az containerapp logs show` command.
0 commit comments