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-apps/enterprise/how-to-managed-component-log-streaming.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ For streaming logs of applications in Azure Spring Apps, see [Stream Azure Sprin
22
22
23
23
## Prerequisites
24
24
25
-
-[Azure CLI](/cli/azure/install-azure-cli) with the Azure Spring Apps extension, version 1.19.0 or higher. You can install the extension by using the following command: `az extension add --name spring`.
25
+
-[Azure CLI](/cli/azure/install-azure-cli) with the Azure Spring Apps extension, version 1.24.0 or higher. You can install the extension by using the following command: `az extension add --name spring`.
26
26
27
27
## Supported managed components
28
28
@@ -32,6 +32,7 @@ The following table lists the managed components that are currently supported, a
| Application Configuration Service | Azure Spring Apps Application Configuration Service Log Reader Role |`Microsoft.AppPlatform/Spring/ApplicationConfigurationService/logstream/action`|
51
52
| Spring Cloud Gateway | Azure Spring Apps Spring Cloud Gateway Log Reader Role |`Microsoft.AppPlatform/Spring/SpringCloudGateway/logstream/action`|
53
+
| Spring Cloud Config Server | Azure Spring Apps Spring Cloud Config Server Log Reader Role |`Microsoft.AppPlatform/Spring/configService/logstream/action`|
52
54
53
55
### [Azure portal](#tab/azure-Portal)
54
56
@@ -220,6 +222,27 @@ The command returns logs similar to the following example:
220
222
...
221
223
```
222
224
225
+
#### View tail logs for an instance of config-server
226
+
227
+
Use the following command to view the tail logs for `config-server`:
228
+
229
+
```azurecli
230
+
az spring component logs \
231
+
--resource-group <resource-group-name> \
232
+
--service <Azure-Spring-Apps-instance-name> \
233
+
--name config-server \
234
+
--instance <instance-name>
235
+
```
236
+
237
+
The command returns logs similar to the following example:
238
+
239
+
```output
240
+
...
241
+
{"app":"config-server","ts":"2024-05-08T05:38:29.44Z","logger":"org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext","level":"INFO","class":"org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext","method":"prepareWebApplicationContext","file":"ServletWebServerApplicationContext.java","line":291,"thread":"main","message":"Root WebApplicationContext: initialization completed in 3771 ms"}
242
+
{"app":"config-server","ts":"2024-05-08T05:38:31.058Z","logger":"com.microsoft.azure.spring.service.CloudConfigServerApplication","level":"INFO","class":"org.springframework.boot.StartupInfoLogger","method":"logStarted","file":"StartupInfoLogger.java","line":57,"thread":"main","message":"Started CloudConfigServerApplication in 6.888 seconds (process running for 8.986)"}
243
+
...
244
+
```
245
+
223
246
---
224
247
225
248
### View tail logs for all instances in one command
0 commit comments