Skip to content

Commit 116bb3c

Browse files
authored
Merge pull request #99094 from MikeDodaro/diagnosticsUpdate
Fixing bug 1657148
2 parents 6794789 + 9983760 commit 116bb3c

File tree

1 file changed

+52
-10
lines changed

1 file changed

+52
-10
lines changed

articles/spring-cloud/diagnostic-services.md

Lines changed: 52 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,32 @@ description: Learn how to analyze diagnostics data in Azure Spring Cloud
44
author: jpconnock
55
ms.service: spring-cloud
66
ms.topic: conceptual
7-
ms.date: 10/06/2019
7+
ms.date: 01/06/2020
88
ms.author: jeconnoc
99

1010
---
1111
# Analyze logs and metrics with diagnostics settings
1212

13-
By using the diagnostics functionality of Azure Spring Cloud, you can analyze logs and metrics with any of the following services:
13+
Using the diagnostics functionality of Azure Spring Cloud, you can analyze logs and metrics with any of the following services:
1414

15-
* Use Azure Log Analytics, where the data is written immediately without having to be written to storage first.
16-
* Save them to a storage account for auditing or manual inspection. You can specify the retention time (in days).
17-
* Stream them to your event hub for ingestion by a third-party service or custom analytics solution.
15+
* Use Azure Log Analytics, where the data is written to Azure Storage. There is a delay when exporting logs to Log Analytics.
16+
* Save logs to a storage account for auditing or manual inspection. You can specify the retention time (in days).
17+
* Stream logs to your event hub for ingestion by a third-party service or custom analytics solution.
1818

19-
To get started, enable one of these services to receive the data. To learn about configuring Log Analytics, review [Get started with Log Analytics in Azure Monitor](../azure-monitor/log-query/get-started-portal.md).
19+
Choose the log category and metric category you want to monitor.
20+
21+
## Logs
22+
23+
|Log | Description |
24+
|----|----|
25+
| **ApplicationConsole** | Console log of all customer applications. |
26+
| **SystemLogs** | Currently, only [Spring Cloud Config Server](https://cloud.spring.io/spring-cloud-config/reference/html/#_spring_cloud_config_server) logs in this category. |
27+
28+
## Metrics
29+
30+
For a complete list of metrics, see [Spring Cloud Metrics](https://docs.microsoft.com/azure/spring-cloud/spring-cloud-concept-metrics#user-portal-metrics-options)
31+
32+
To get started, enable one of these services to receive the data. To learn about configuring Log Analytics, see [Get started with Log Analytics in Azure Monitor](../azure-monitor/log-query/get-started-portal.md).
2033

2134
## Configure diagnostics settings
2235

@@ -33,19 +46,46 @@ To get started, enable one of these services to receive the data. To learn about
3346
> [!NOTE]
3447
> There might be a gap of up to 15 minutes between when logs or metrics are emitted and when they appear in your storage account, your event hub, or Log Analytics.
3548
36-
## View the logs
49+
## View the logs and metrics
50+
There are various methods to view logs and metrics as described under the following headings.
51+
52+
### Use Logs blade
53+
54+
1. In the Azure portal, go to your Azure Spring Cloud instance.
55+
1. To open the **Log Search** pane, select **Logs**.
56+
1. In the **Log** search box
57+
* To view logs, enter a simple query such as:
58+
59+
```sql
60+
AppPlatformLogsforSpring
61+
| limit 50
62+
```
63+
* To view metrics, enter a simple query such as:
64+
65+
```sql
66+
AzureMetrics
67+
| limit 50
68+
```
69+
1. To view the search result, select **Run**.
3770

3871
### Use Log Analytics
3972

4073
1. In the Azure portal, in the left pane, select **Log Analytics**.
4174
1. Select the Log Analytics workspace that you chose when you added your diagnostics settings.
4275
1. To open the **Log Search** pane, select **Logs**.
43-
1. In the **Log** search box, enter a simple query such as:
76+
1. In the **Log** search box,
77+
* to view logs, enter a simple query such as:
4478

4579
```sql
4680
AppPlatformLogsforSpring
4781
| limit 50
4882
```
83+
* to view metrics, enter a simple query such as:
84+
85+
```sql
86+
AzureMetrics
87+
| limit 50
88+
```
4989

5090
1. To view the search result, select **Run**.
5191
1. You can search the logs of the specific application or instance by setting a filter condition:
@@ -55,6 +95,8 @@ To get started, enable one of these services to receive the data. To learn about
5595
| where ServiceName == "YourServiceName" and AppName == "YourAppName" and InstanceName == "YourInstanceName"
5696
| limit 50
5797
```
98+
> [!NOTE]
99+
> `==` is case sensitive, but `=~` is not.
58100

59101
To learn more about the query language that's used in Log Analytics, see [Azure Monitor log queries](../azure-monitor/log-query/query-language.md).
60102
@@ -82,9 +124,9 @@ To learn more about sending diagnostics information to an event hub, see [Stream
82124
83125
## Analyze the logs
84126
85-
Azure Log Analytics provides Kusto so that you can query your logs for analysis. For a quick introduction to querying logs by using Kusto, review the [Log Analytics tutorial](../azure-monitor/log-query/get-started-portal.md).
127+
Azure Log Analytics is running with a Kusto engine so you can query your logs for analysis. For a quick introduction to querying logs by using Kusto, review the [Log Analytics tutorial](../azure-monitor/log-query/get-started-portal.md).
86128
87-
Application logs provide critical information about your application's health, performance, and more. In the next sections are some simple queries to help you understand your application's current and past states.
129+
Application logs provide critical information and verbose logs about your application's health, performance, and more. In the next sections are some simple queries to help you understand your application's current and past states.
88130
89131
### Show application logs from Azure Spring Cloud
90132

0 commit comments

Comments
 (0)