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/diagnostic-services.md
+52-10Lines changed: 52 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,19 +4,32 @@ description: Learn how to analyze diagnostics data in Azure Spring Cloud
4
4
author: jpconnock
5
5
ms.service: spring-cloud
6
6
ms.topic: conceptual
7
-
ms.date: 10/06/2019
7
+
ms.date: 01/06/2020
8
8
ms.author: jeconnoc
9
9
10
10
---
11
11
# Analyze logs and metrics with diagnostics settings
12
12
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:
14
14
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.
18
18
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).
20
33
21
34
## Configure diagnostics settings
22
35
@@ -33,19 +46,46 @@ To get started, enable one of these services to receive the data. To learn about
33
46
> [!NOTE]
34
47
> 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.
35
48
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
+
| limit50
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**.
37
70
38
71
### Use Log Analytics
39
72
40
73
1. In the Azure portal, in the left pane, select**Log Analytics**.
41
74
1. Select the Log Analytics workspace that you chose when you added your diagnostics settings.
42
75
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:
44
78
45
79
```sql
46
80
AppPlatformLogsforSpring
47
81
| limit 50
48
82
```
83
+
* to view metrics, enter a simple query such as:
84
+
85
+
```sql
86
+
AzureMetrics
87
+
| limit 50
88
+
```
49
89
50
90
1. To view the search result, select**Run**.
51
91
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
55
95
| where ServiceName == "YourServiceName" and AppName == "YourAppName" and InstanceName == "YourInstanceName"
56
96
| limit 50
57
97
```
98
+
> [!NOTE]
99
+
>`==` is case sensitive, but `=~` is not.
58
100
59
101
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).
60
102
@@ -82,9 +124,9 @@ To learn more about sending diagnostics information to an event hub, see [Stream
82
124
83
125
## Analyze the logs
84
126
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).
86
128
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.
0 commit comments