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/spring-apps/enterprise/how-to-job-log-streaming.md
+13-7Lines changed: 13 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,11 @@ Use the following command to assign an Azure role:
65
65
66
66
---
67
67
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
69
73
70
74
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.
71
75
@@ -79,11 +83,7 @@ az spring job execution instance list \
79
83
--execution <job-execution-name>
80
84
```
81
85
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.
87
87
88
88
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:
89
89
@@ -117,9 +117,15 @@ When you use the `-f/--follow` option to tail instant logs, the Azure Spring App
117
117
118
118
### Stream logs for a specific instance
119
119
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:
0 commit comments