Skip to content

Commit b71cb76

Browse files
authored
Merge pull request #229038 from leonard520/leonard520-log-desc
Add description about how to query logs for Tanzu components
2 parents 41dfd18 + b0291c2 commit b71cb76

File tree

1 file changed

+59
-6
lines changed

1 file changed

+59
-6
lines changed

articles/spring-apps/diagnostic-services.md

Lines changed: 59 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ Choose the log category and metric category you want to monitor.
3333
3434
## Logs
3535

36-
|Log | Description |
37-
|----|----|
38-
| **ApplicationConsole** | Console log of all customer applications. |
39-
| **SystemLogs** | Currently, only [Spring Cloud Config Server](https://cloud.spring.io/spring-cloud-config/reference/html/#_spring_cloud_config_server) logs in this category. |
40-
| **IngressLogs** | [Ingress logs](#show-ingress-log-entries-containing-a-specific-host) of all customer's applications, only access logs. |
41-
| **BuildLogs** | [Build logs](#show-build-log-entries-for-a-specific-app) of all customer's applications for each build stage. |
36+
| Log | Description |
37+
|------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
38+
| **ApplicationConsole** | Console log of all customer applications. |
39+
| **SystemLogs** | The available `LogType` values are `ConfigServer`(Basic/Standard tier only), `ServiceRegistry`(all tiers), `ApiPortal`(Enterprise tier only), `ApplicationConfigurationService`(Enterprise tier only), `SpringCloudGateway` (Enterprise tier only), and `SpringCloudGatewayOperator` (Enterprise tier only) |
40+
| **IngressLogs** | [Ingress logs](#show-ingress-log-entries-containing-a-specific-host) of all customer's applications, only access logs. |
41+
| **BuildLogs** | [Build logs](#show-build-log-entries-for-a-specific-app) of all customer's applications for each build stage. |
4242

4343
## Metrics
4444

@@ -227,6 +227,59 @@ AppPlatformBuildLogs
227227
| sort by TimeGenerated
228228
```
229229

230+
### Show VMware Spring Cloud Gateway logs in Enterprise tier
231+
232+
To review log entries for VMware Spring Cloud Gateway logs in Enterprise tier, run the following query:
233+
234+
```sql
235+
AppPlatformSystemLogs 
236+
| where LogType == "SpringCloudGateway"
237+
| project TimeGenerated , LogType, Level , ServiceName , Thread , Stack , Log , _ResourceId 
238+
| limit 100
239+
```
240+
241+
Another component, named Spring Cloud Gateway Operator, controls the lifecycle of Spring Cloud Gateway and routes. If you encounter any issues with the route not taking effect, check the logs for this component. To review log entries for VMware Spring Cloud Gateway Operator in Enterprise tier, run the following query:
242+
243+
```sql
244+
AppPlatformSystemLogs 
245+
| where LogType == "SpringCloudGatewayOperator"
246+
| project TimeGenerated , LogType, Level , ServiceName , Thread , Stack , Log , _ResourceId 
247+
| limit 100
248+
```
249+
250+
### Show Application Configuration Service for Tanzu logs in Enterprise tier
251+
252+
To review log entries for Application Configuration Service for Tanzu logs in Enterprise tier, run the following query:
253+
254+
```sql
255+
AppPlatformSystemLogs 
256+
| where LogType == "ApplicationConfigurationService"
257+
| project TimeGenerated , LogType, Level , ServiceName , Thread , Stack , Log , _ResourceId 
258+
| limit 100
259+
```
260+
261+
### Show Tanzu Service Registry logs in Enterprise tier
262+
263+
To review log entries for Tanzu Service Registry logs in Enterprise tier, run the following query:
264+
265+
```sql
266+
AppPlatformSystemLogs 
267+
| where LogType == "ServiceRegistry"
268+
| project TimeGenerated , LogType, Level , ServiceName , Thread , Stack , Log , _ResourceId 
269+
| limit 100
270+
```
271+
272+
### Show API portal for VMware Tanzu logs in Enterprise tier
273+
274+
To review log entries for API portal for VMware Tanzu logs in Enterprise tier, run the following query:
275+
276+
```sql
277+
AppPlatformSystemLogs 
278+
| where LogType == "ApiPortal"
279+
| project TimeGenerated , LogType, Level , ServiceName , Thread , Stack , Log , _ResourceId 
280+
| limit 100
281+
```
282+
230283
### Learn more about querying application logs
231284

232285
Azure Monitor provides extensive support for querying application logs by using Log Analytics. To learn more about this service, see [Get started with log queries in Azure Monitor](../azure-monitor/logs/get-started-queries.md). For more information about building queries to analyze your application logs, see [Overview of log queries in Azure Monitor](../azure-monitor/logs/log-query-overview.md).

0 commit comments

Comments
 (0)