Skip to content

Commit 7bafc20

Browse files
Update log-streaming.md
1 parent 0e650bd commit 7bafc20

File tree

1 file changed

+54
-54
lines changed

1 file changed

+54
-54
lines changed

articles/container-apps/log-streaming.md

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ You can stream the system or console logs for your container app. To stream the
6262

6363
#### View container app system log stream
6464

65-
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.
65+
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.
6666

6767
# [Bash](#tab/bash)
6868

6969
```azurecli
7070
az containerapp logs show \
71-
--name <ContainerAppName> \
72-
--resource-group <ResourceGroup> \
71+
--name <CONTAINER_APP_NAME> \
72+
--resource-group <RESOURCE_GROUP> \
7373
--type system \
7474
--tail 50
7575
```
@@ -78,22 +78,22 @@ az containerapp logs show \
7878

7979
```azurecli
8080
az containerapp logs show `
81-
--name <ContainerAppName> `
82-
--resource-group <ResourceGroup> `
81+
--name <CONTAINER_APP_NAME> `
82+
--resource-group <RESOURCE_GROUP> `
8383
--type system `
8484
--tail 50
8585
```
8686

8787
---
8888

89-
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.
89+
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.
9090

9191
# [Bash](#tab/bash)
9292

9393
```azurecli
9494
az containerapp logs show \
95-
--name <ContainerAppName> \
96-
--resource-group <ResourceGroup> \
95+
--name <CONTAINER_APP_NAME> \
96+
--resource-group <RESOURCE_GROUP> \
9797
--type system \
9898
--follow
9999
```
@@ -102,8 +102,8 @@ az containerapp logs show \
102102

103103
```azurecli
104104
az containerapp logs show `
105-
--name <ContainerAppName> `
106-
--resource-group <ResourceGroup> `
105+
--name <CONTAINER_APP_NAME> `
106+
--resource-group <RESOURCE_GROUP> `
107107
--type system `
108108
--follow
109109
```
@@ -122,63 +122,63 @@ To connect to a container's console log stream in a container app with multiple
122122
| `--replica` | The replica name in the revision. |
123123
| `--container` | The container name to connect to. |
124124

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

127127
# [Bash](#tab/bash)
128128

129129
```azurecli
130130
az containerapp revision list \
131-
--name <ContainerAppName> \
132-
--resource-group <ResourceGroup> \
131+
--name <CONTAINER_APP_NAME> \
132+
--resource-group <RESOURCE_GROUP> \
133133
--query "[].name"
134134
```
135135

136136
# [PowerShell](#tab/powershell)
137137

138138
```azurecli
139139
az containerapp revision list `
140-
--name <ContainerAppName> `
141-
--resource-group <ResourceGroup> `
140+
--name <CONTAINER_APP_NAME> `
141+
--resource-group <RESOURCE_GROUP> `
142142
--query "[].name"
143143
```
144144

145145
---
146146

147-
Use the `az containerapp replica list` command to get the replica and container names. Replace the \<placeholders\> with your container app's values.
147+
Use the `az containerapp replica list` command to get the replica and container names. Replace the `<PLACEHOLDERS>` with your container app's values.
148148

149149
# [Bash](#tab/bash)
150150

151151
```azurecli
152152
az containerapp replica list \
153-
--name <ContainerAppName> \
154-
--resource-group <ResourceGroup> \
155-
--revision <RevisionName> \
153+
--name <CONTAINER_APP_NAME> \
154+
--resource-group <RESOURCE_GROUP> \
155+
--revision <REVISION_NAME> \
156156
--query "[].{Containers:properties.containers[].name, Name:name}"
157157
```
158158

159159
# [PowerShell](#tab/powershell)
160160

161161
```azurecli
162162
az containerapp replica list `
163-
--name <ContainerAppName> `
164-
--resource-group <ResourceGroup> `
165-
--revision <RevisionName> `
163+
--name <CONTAINER_APP_NAME> `
164+
--resource-group <RESOURCE_GROUP> `
165+
--revision <REVISION_NAME> `
166166
--query "[].{Containers:properties.containers[].name, Name:name}"
167167
```
168168

169169
---
170170

171-
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.
171+
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.
172172

173173
# [Bash](#tab/bash)
174174

175175
```azurecli
176176
az containerapp logs show \
177-
--name <ContainerAppName> \
178-
--resource-group <ResourceGroup> \
179-
--revision <RevisionName> \
180-
--replica <ReplicaName> \
181-
--container <ContainerName> \
177+
--name <CONTAINER_APP_NAME> \
178+
--resource-group <RESOURCE_GROUP> \
179+
--revision <REVISION_NAME> \
180+
--replica <REPLICA_NAME> \
181+
--container <CONTAINER_NAME> \
182182
--type console \
183183
--follow
184184
```
@@ -187,11 +187,11 @@ az containerapp logs show \
187187

188188
```azurecli
189189
az containerapp logs show `
190-
--name <ContainerAppName> `
191-
--resource-group <ResourceGroup> `
192-
--revision <RevisionName> `
193-
--replica <ReplicaName> `
194-
--container <ContainerName> `
190+
--name <CONTAINER_APP_NAME> `
191+
--resource-group <RESOURCE_GROUP> `
192+
--revision <REVISION_NAME> `
193+
--replica <REPLICA_NAME> `
194+
--container <CONTAINER_NAME> `
195195
--type console `
196196
--follow
197197
```
@@ -200,17 +200,17 @@ az containerapp logs show `
200200

201201
Use `Ctrl-C` or `Cmd-C` to stop the live stream.
202202

203-
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.
203+
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.
204204

205205
# [Bash](#tab/bash)
206206

207207
```azurecli
208208
az containerapp logs show \
209-
--name <ContainerAppName> \
210-
--resource-group <ResourceGroup> \
211-
--revision <RevisionName> \
212-
--replica <ReplicaName> \
213-
--container <ContainerName> \
209+
--name <CONTAINER_APP_NAME> \
210+
--resource-group <RESOURCE_GROUP> \
211+
--revision <REVISION_NAME> \
212+
--replica <REPLICA_NAME> \
213+
--container <CONTAINER_NAME> \
214214
--type console \
215215
--tail 50
216216
```
@@ -219,11 +219,11 @@ az containerapp logs show \
219219

220220
```azurecli
221221
az containerapp logs show `
222-
--name <ContainerAppName> `
223-
--resource-group <ResourceGroup> `
224-
--revision <RevisionName> `
225-
--replica <ReplicaName> `
226-
--container <ContainerName> `
222+
--name <CONTAINER_APP_NAME> `
223+
--resource-group <RESOURCE_GROUP> `
224+
--revision <REVISION_NAME> `
225+
--replica <REPLICA_NAME> `
226+
--container <CONTAINER_NAME> `
227227
--type console `
228228
--tail 50
229229
```
@@ -232,47 +232,47 @@ az containerapp logs show `
232232

233233
### View environment system log stream
234234

235-
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.
235+
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.
236236

237237
# [Bash](#tab/bash)
238238

239239
```azurecli
240240
az containerapp env logs show \
241-
--name <ContainerAppEnvironmentName> \
242-
--resource-group <ResourceGroup> \
241+
--name <ENVIRONMENT_NAME> \
242+
--resource-group <RESOURCE_GROUP> \
243243
--follow
244244
```
245245

246246
# [PowerShell](#tab/powershell)
247247

248248
```azurecli
249249
az containerapp env logs show `
250-
--name <ContainerAppEnvironmentName> `
251-
--resource-group <ResourceGroup> `
250+
--name <ENVIRONMENT_NAME> `
251+
--resource-group <RESOURCE_GROUP> `
252252
--follow
253253
```
254254

255255
---
256256

257257
Use `Ctrl-C` or `Cmd-C` to stop the live stream.
258258

259-
This example uses the `--tail` argument to display the last 50 environment system log messages. Replace the \<placeholders\> with your environment values.
259+
This example uses the `--tail` argument to display the last 50 environment system log messages. Replace the `<PLACEHOLDERS>` with your environment values.
260260

261261
# [Bash](#tab/bash)
262262

263263
```azurecli
264264
az containerapp env logs show \
265-
--name <ContainerAppName> \
266-
--resource-group <ResourceGroup> \
265+
--name <CONTAINER_APP_NAME> \
266+
--resource-group <RESOURCE_GROUP> \
267267
--tail 50
268268
```
269269

270270
# [PowerShell](#tab/powershell)
271271

272272
```azurecli
273273
az containerapp env logs show `
274-
--name <ContainerAppName> `
275-
--resource-group <ResourceGroup> `
274+
--name <CONTAINER_APP_NAME> `
275+
--resource-group <RESOURCE_GROUP> `
276276
--tail 50
277277
```
278278

0 commit comments

Comments
 (0)