az spring-cloud app log
Note
This reference is part of the spring-cloud extension for the Azure CLI (version 2.45.0 or higher). The extension will automatically install the first time you run an az spring-cloud app log command. Learn more about extensions.
This command group is implicitly deprecated because command group 'spring-cloud app' is deprecated and will be removed in a future release. Use 'spring app' instead.
Commands to tail app instances logs with multiple options. If the app has only one instance, the instance name is optional.
Commands
Name | Description | Type | Status |
---|---|---|---|
az spring-cloud app log tail |
Show logs of an app instance, logs will be streamed when setting '-f/--follow'. |
Extension | Deprecated |
az spring-cloud app log tail
This command is implicitly deprecated because command group 'spring-cloud app log' is deprecated and will be removed in a future release. Use 'az spring app logs' instead.
Show logs of an app instance, logs will be streamed when setting '-f/--follow'.
az spring-cloud app log tail --name
--resource-group
--service
[--deployment]
[--follow]
[--format-json]
[--instance]
[--limit]
[--lines]
[--since]
Required Parameters
Name of app.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of Azure Spring Cloud, you can configure the default service using az configure --defaults spring-cloud=.
Optional Parameters
Name of an existing deployment of the app. Default to the production deployment if not specified.
Specify if the logs should be streamed.
Format JSON logs if structured log is enabled.
Name of an existing instance of the deployment.
Maximum kilobytes of logs to return. Ceiling number is 2048.
Number of lines to show. Maximum is 10000.
Only return logs newer than a relative duration like 5s, 2m, or 1h. Maximum is 1h.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI