az webapp log
Manage web app logs.
Commands
az webapp log config |
Configure logging for a web app. |
az webapp log deployment |
Manage web app deployment logs. |
az webapp log deployment list |
List deployments associated with web app. |
az webapp log deployment show |
Show deployment logs of the latest deployment, or a specific deployment if deployment-id is specified. |
az webapp log download |
Download a web app's log history as a zip file. |
az webapp log show |
Get the details of a web app's logging configuration. |
az webapp log tail |
Start live log tracing for a web app. |
az webapp log config
Configure logging for a web app.
az webapp log config [--application-logging {azureblobstorage, filesystem, off}]
[--detailed-error-messages {false, true}]
[--docker-container-logging {filesystem, off}]
[--failed-request-tracing {false, true}]
[--ids]
[--level {error, information, verbose, warning}]
[--name]
[--resource-group]
[--slot]
[--subscription]
[--web-server-logging {filesystem, off}]
Examples
Configure logging for a web app. (autogenerated)
az webapp log config --name MyWebapp --resource-group MyResourceGroup --web-server-logging off
Configure logging for a web app. (autogenerated)
az webapp log config --docker-container-logging off --name MyWebapp --resource-group MyResourceGroup
Optional Parameters
Configure application logging.
Configure detailed error messages.
Configure gathering STDOUT and STDERR output from container.
Configure failed request tracing.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Logging level.
Name of the web app. If left unspecified, a name will be randomly generated. You can configure the default using az configure --defaults web=<name>
.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the slot. Default to the productions slot if not specified.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Configure Web server logging.
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.
az webapp log download
Download a web app's log history as a zip file.
This command may not work with web apps running on Linux.
az webapp log download [--ids]
[--log-file]
[--name]
[--resource-group]
[--slot]
[--subscription]
Examples
Download a web app's log history as a zip file. (autogenerated)
az webapp log download --name MyWebApp --resource-group MyResourceGroup
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The downloaded zipped log file path.
Name of the web app. If left unspecified, a name will be randomly generated. You can configure the default using az configure --defaults web=<name>
.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the slot. Default to the productions slot if not specified.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
az webapp log show
Get the details of a web app's logging configuration.
az webapp log show [--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
Examples
Get the details of a web app's logging configuration. (autogenerated)
az webapp log show --name MyWebApp --resource-group MyResourceGroup
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the web app. If left unspecified, a name will be randomly generated. You can configure the default using az configure --defaults web=<name>
.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the slot. Default to the productions slot if not specified.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
az webapp log tail
Start live log tracing for a web app.
az webapp log tail [--ids]
[--name]
[--provider]
[--resource-group]
[--slot]
[--subscription]
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the web app. If left unspecified, a name will be randomly generated. You can configure the default using az configure --defaults web=<name>
.
By default all live traces configured by az webapp log config
will be shown, but you can scope to certain providers/folders, e.g. 'application', 'http', etc. For details, check out https://github.com/projectkudu/kudu/wiki/Diagnostic-Log-Stream.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the slot. Default to the productions slot if not specified.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
Feedback
Submit and view feedback for