Skip to content

Commit a182e99

Browse files
committed
work in progress - more improvements
1 parent 8cbc717 commit a182e99

File tree

1 file changed

+26
-21
lines changed

1 file changed

+26
-21
lines changed

articles/container-apps/log-streaming.md

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,20 @@ ms.author: v-bcatherine
1212

1313
# View log streams in Azure Container Apps
1414

15-
While developing and troubleshooting your container app, it's important to see a container's logs in real-time. Container Apps lets you view a stream of your container app's [system logs](logging.md#system-logs) at the Container Apps environment level and at the app level. You can stream the [console logs](logging.md#container-console-logs) apps at the container level. Log streams are accessible though the Azure portal or the Azure CLI.
15+
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:
16+
17+
- [system logs](logging.md#system-logs) from the Container Apps environment and your container app.
18+
- container [console logs](logging.md#container-console-logs) from your container app.
19+
20+
Log streams are accessible through the Azure portal or the Azure CLI.
1621

1722
## View log streams via the Azure portal
1823

19-
You can view system logs and application logs in the Azure portal. System logs are generated by the container app's runtime. Application logs are generated by your container app's application.
24+
You can view system logs and console logs in the Azure portal. System logs are generated by the container app's runtime. Console logs are generated by your container app's application.
2025

2126
### Environment system log stream
2227

23-
To troubleshoot issues with in your container app environment, you can view the system log stream from your environment page. The log stream displays the system logs for the Container Apps service and the apps actively running in the environment:
28+
To troubleshoot issues in your container app environment, you can view the system log stream from your environment page. The log stream displays the system logs for the Container Apps service and the apps actively running in the environment:
2429

2530
1. Go to your environment page in the Azure portal.
2631
1. Select **Log stream** under the *Monitoring* section on the sidebar menu.
@@ -29,36 +34,36 @@ To troubleshoot issues with in your container app environment, you can view the
2934

3035
### Container app log stream
3136

32-
You can view a log stream of your container apps system or application logs from your container app page.
37+
You can view a log stream of your container apps system or console logs from your container app page.
3338

3439
1. Go to your container app in the Azure portal.
3540
1. Select **Log stream** under the *Monitoring* section on the sidebar menu.
3641
1. To view the console log stream, select **Console**.
37-
1. If you have multiple revisions, replicas, or containers, you can select from the pull-down menus to choose a container. If your app has only one container, you can skip this step.
42+
1. If you have multiple revisions, replicas, or containers, you can select from the pull-down menus to choose a container. If your app has only one container, you can skip this step.
3843

3944
:::image type="content" source="media/observability/screenshot-log-stream-console-app.png" alt-text="Screenshot of Container Apps console log stream from app page.":::
4045

41-
1. To view the system log stream, select **System**. The system log stream displays the system logs for all running containers in the environment.
46+
1. To view the system log stream, select **System**. The system log stream displays the system logs for all running containers in the environment.
4247

4348
:::image type="content" source="media/observability/screenshot-log-stream-system-app.png" alt-text="Screenshot of Container Apps system log stream from app page.":::
4449

4550
## View log streams via the Azure CLI
4651

47-
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.
52+
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.
4853

4954
Control the log stream with the following arguments:
5055

51-
- `--tail` (Default) - View the last n log entries. Values are 0-300 entries. The value is 20.
52-
- `--follow` - View a continuous live stream of the log entries.
56+
- `--tail` (Default) - View the last n log messages. Values are 0-300 messages. The default is 20.
57+
- `--follow` - View a continuous live stream of the log messages.
5358

5459
### Stream Container app logs
5560

56-
You can stream the system or console logs for your container app. To stream the container app system logs, use the `--type` argument with the value `system`. To stream the container console logs, use the `--type` argument with the value `console`. The default is `console`.
61+
You can stream the system or console logs for your container app. To stream the container app system logs, use the `--type` argument with the value `system`. To stream the container console logs, use the `--type` argument with the value `console`. The default is `console`.
5762

5863

5964
#### View container app system log stream
6065

61-
This example displays the last 50 system log entries for the container app.
66+
This example uses the `--tail` argument to display the last 50 system log messages from the container app. Replace the \<placeholders\> with your container app's values.
6267

6368
# [Bash](#tab/bash)
6469

@@ -82,7 +87,7 @@ az containerapp logs show `
8287

8388
---
8489

85-
This example displays a continuous live stream of system log entries for the container app.
90+
This example displays a continuous live stream of system log messages from the container app using the `--follow` argument. Replace the \<placeholders\> with your container app's values.
8691

8792
# [Bash](#tab/bash)
8893

@@ -114,11 +119,11 @@ To connect to a container's console log stream in a container app with multiple
114119

115120
| Argument | Description |
116121
|----------|-------------|
117-
| `--revision` | The revision name of the container to connect to. |
118-
| `--replica` | The replica name of the container to connect to. |
119-
| `--container` | The container name of the container to connect to. |
122+
| `--revision` | The revision name. |
123+
| `--replica` | The replica name in the revision. |
124+
| `--container` | The container name to connect to. |
120125

121-
You can get the revision names with the `az containerapp revision list` command. Replace the \<placeholders\> with your container app's values.
126+
You can get the revision names with the `az containerapp revision list` command. Replace the \<placeholders\> with your container app's values.
122127

123128
# [Bash](#tab/bash)
124129

@@ -164,7 +169,7 @@ az containerapp replica list `
164169

165170
---
166171

167-
Live stream the container console logs with the `az container app show` command. Replace the \<placeholders\> with your container app's values.
172+
Live stream the container console using the `az container app show` command with the `--follow` argument. Replace the \<placeholders\> with your container app's values.
168173

169174
# [Bash](#tab/bash)
170175

@@ -196,7 +201,7 @@ az containerapp logs show `
196201

197202
Use `Ctrl-C` or `Cmd-C` to stop the live stream.
198203

199-
View the last 50 container console log entries with the `az containerapp logs show` command. Replace the \<placeholders\> with your container app's values.
204+
View the last 50 console log messages using the `az containerapp logs show` command with the `--tail` argument. Replace the \<placeholders\> with your container app's values.
200205

201206

202207
# [Bash](#tab/bash)
@@ -230,7 +235,7 @@ az containerapp logs show `
230235

231236
### View environment system log stream
232237

233-
Use the following command to view the live system log stream from the Container Apps service.
238+
Use the following command with the `--follow` argument to view the live system log stream from the Container Apps environment. Replace the \<placeholders\> with your environment values.
234239

235240
# [Bash](#tab/bash)
236241

@@ -255,7 +260,7 @@ az containerapp env logs show `
255260
Use `Ctrl-C` or `Cmd-C` to stop the live stream.
256261

257262

258-
This example displays the last 50 environment system log entries.
263+
This example uses the `--tail` argument to display the last 50 environment system log messages. Replace the \<placeholders\> with your environment values.
259264

260265
# [Bash](#tab/bash)
261266

@@ -278,4 +283,4 @@ az containerapp env logs show `
278283
---
279284

280285
> [!div class="nextstepaction"]
281-
> [View log streams from the Azure portal](log-streaming.md)
286+
> [Log storage and monitoring options in Azure Container Apps](log-monitoring.md)

0 commit comments

Comments
 (0)