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-cloud/spring-cloud-howto-log-streaming.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ ms.date: 01/14/2019
9
9
---
10
10
11
11
# Stream Azure Spring Cloud app logs in real-time
12
-
Azure Spring Cloud enables log streaming in Azure CLI to permit you get real-time application console logs for troubleshooting. You also could[Analyze logs and metrics with diagnostics settings](./diagnostic-services.md).
12
+
Azure Spring Cloud enables log streaming in Azure CLI to get real-time application console logs for troubleshooting. You can also[Analyze logs and metrics with diagnostics settings](./diagnostic-services.md).
13
13
14
14
## Prerequisites
15
15
@@ -26,7 +26,7 @@ az configure --defaults spring-cloud=<service instance name>
26
26
In following examples, the resource group and service name will be omitted in the commands.
27
27
28
28
### Tail log for app with single instance
29
-
If an app named auth-service has only one instance, you can view the log of the app instance with following command:
29
+
If an app named auth-service has only one instance, you can view the log of the app instance with the following command:
30
30
```
31
31
az spring-cloud app log tail -n auth-service
32
32
```
@@ -42,7 +42,7 @@ This will return logs:
42
42
```
43
43
44
44
### Tail log for app with multiple instances
45
-
If multiple instances exist for the app named `auth-service`, you can view the instance log by using the `-i/--instance` option. For example, you can stream the log of some instance of one app by specify the app name and instance name.
45
+
If multiple instances exist for the app named `auth-service`, you can view the instance log by using the `-i/--instance` option. For example, you can stream the log of an instance of one app by specifying the app name and instance name:
46
46
47
47
```
48
48
az spring-cloud app log tail -n auth-service -i auth-service-default-12-75cc4577fc-pw7hb
@@ -54,7 +54,7 @@ You can also get the app instances from the Azure portal.
54
54
1. App instances will be displayed.
55
55
56
56
### Continuously stream new logs
57
-
By default, ‘az spring-cloud ap log tail’ prints nly existing logs streamed to app console and then exits. If you want to stream new logs, add -f (--follow):
57
+
By default, ‘az spring-cloud ap log tail’ prints only existing logs streamed to app console and then exits. If you want to stream new logs, add -f (--follow):
0 commit comments