Skip to content

Commit 84b1ebc

Browse files
authored
Move instance lsit
1 parent f507a3d commit 84b1ebc

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

articles/spring-apps/enterprise/how-to-job-log-streaming.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ Use the following command to assign an Azure role:
6565

6666
---
6767

68-
## List all instances in a job execution
68+
## View tail logs
69+
70+
This section provides examples of using the Azure CLI to produce tail logs.
71+
72+
### View tail logs for a specific instance
6973

7074
Every time a job is triggered, a new job execution is created. Also, depending on the parallelism setting for your job, several replicas or instances execute in parallel.
7175

@@ -79,11 +83,7 @@ az spring job execution instance list \
7983
--execution <job-execution-name>
8084
```
8185

82-
## View tail logs
83-
84-
This section provides examples of using the Azure CLI to produce tail logs.
85-
86-
### View tail logs for a specific instance
86+
You can get all instance names of the job execution from the output.
8787

8888
To view the tail logs for a specific instance, use the `az spring job logs` command with the `-i/--instance` argument, as shown in the following example:
8989

@@ -117,9 +117,15 @@ When you use the `-f/--follow` option to tail instant logs, the Azure Spring App
117117

118118
### Stream logs for a specific instance
119119

120-
Use the following command to stream logs for a specific instance:
120+
Use the following command to get instance names and stream logs for a specific instance:
121121

122122
```azurecli
123+
az spring job execution instance list \
124+
--resource-group <resource-group-name> \
125+
--service <Azure-Spring-Apps-instance-name> \
126+
--job <job-name> \
127+
--execution <job-execution-name>
128+
123129
az spring job logs \
124130
--resource-group <resource-group-name> \
125131
--service <Azure-Spring-Apps-instance-name> \

0 commit comments

Comments
 (0)