Skip to content

Commit 6854b61

Browse files
committed
Review 3
1 parent ddf0d67 commit 6854b61

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

articles/spring-cloud/spring-cloud-howto-log-streaming.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Azure Spring Cloud log streaming for instant availability
2+
title: Stream Azure Spring Cloud app logs in real-time
33
description: How to use log streaming to view application logs instantly
44
author: MikeDodaro
55
ms.author: barbkess
@@ -8,13 +8,12 @@ ms.topic: how-to
88
ms.date: 01/14/2019
99
---
1010

11-
# Azure Spring Cloud log streaming for instant availability
12-
13-
The log streaming feature makes application logs available instantly using CLI with limited range. To view logs out of range, see [Analyze logs and metrics with diagnostics settings](./diagnostic-services.md).
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).
1413

1514
## Prerequisites
1615

17-
* Install minimum version 0.2.0 of the [Azure CLI extension](https://docs.microsoft.com/azure/spring-cloud/spring-cloud-quickstart-launch-app-cli#install-the-azure-cli-extension)
16+
* Install [Azure CLI extension](https://docs.microsoft.com/azure/spring-cloud/spring-cloud-quickstart-launch-app-cli#install-the-azure-cli-extension) for Spring Cloud.
1817
* An instance of **Azure Spring Cloud** with a running application, for example [Spring Cloud app](./spring-cloud-quickstart-launch-app-cli.md)
1918

2019
## Use CLI to tail logs
@@ -27,9 +26,9 @@ az configure --defaults spring-cloud=<service instance name>
2726
In following examples, the resource group and service name will be omitted in the commands.
2827

2928
### Tail log for app with single instance
30-
If an app named auth-service has only one instance, you can view the instance log with following command:
29+
If an app named auth-service has only one instance, you can view the log of the app instance with following command:
3130
```
32-
az spring-cloud app log tail -n auth-service
31+
az spring-cloud app log tail -n auth-service
3332
```
3433
This will return logs:
3534
```
@@ -43,22 +42,23 @@ This will return logs:
4342
```
4443

4544
### Tail log for app with multiple instances
46-
If multiple instances exist for the app named `auth-service`, you can view the instance log by using the `-i/--instance` option. If the service auth-service has an instance named with auth-service-default-12-75cc4577fc-pw7hb, you can query with the following command.
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.
46+
4747
```
48-
az spring-cloud app log tail -n auth-service -i auth-service-default-12-75cc4577fc-pw7hb
48+
az spring-cloud app log tail -n auth-service -i auth-service-default-12-75cc4577fc-pw7hb
4949
```
5050
You can also get the app instances from the Azure portal.
5151
1. Navigate to your resource group and select your Azure Spring Cloud instance.
5252
1. From the Azure Spring Cloud instance overview select **Apps** in the left navigation pane.
5353
1. Select your app, and then click **App Instances** in the left navigation pane.
5454
1. App instances will be displayed.
5555

56-
### Follow option to track new logs
57-
By default, CLI will only print the existing log to console without following new logs. If you need to track the new logs, use `-f(--follow)` to track the new logs:
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):
58+
5859
```
59-
az spring-cloud app log tail -n auth-service -f
60+
az spring-cloud app log tail -n auth-service -f
6061
```
61-
### More options
6262
To check all the logging options supported:
6363
```
6464
az spring-cloud app log tail -h

articles/spring-cloud/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
href: spring-cloud-service-registration.md
5555
- name: Analyze application logs and Metrics
5656
href: diagnostic-services.md
57-
- name: Azure Spring Cloud log streaming for instant availability
57+
- name: Stream Azure Spring Cloud app logs in real-time
5858
href: spring-cloud-howto-log-streaming.md
5959
- name: Automate your CI/CD pipeline in Azure Spring Cloud
6060
href: spring-cloud-howto-cicd.md

0 commit comments

Comments
 (0)