az webapp log

Manage web app logs.

Commands

az webapp log config Configure logging for a web app.
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 --name
--resource-group
[--application-logging {false, true}]
[--detailed-error-messages {false, true}]
[--docker-container-logging {filesystem, off}]
[--failed-request-tracing {false, true}]
[--level {error, information, verbose, warning}]
[--slot]
[--web-server-logging {filesystem, off}]

Required Parameters

--name -n

Name of the web. You can configure the default using 'az configure --defaults web='.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--application-logging

Configure application logging to file system.

accepted values: false, true
--detailed-error-messages

Configure detailed error messages.

accepted values: false, true
--docker-container-logging

Configure gathering STDOUT and STDERR output from container.

accepted values: filesystem, off
--failed-request-tracing

Configure failed request tracing.

accepted values: false, true
--level

Logging level.

accepted values: error, information, verbose, warning
--slot -s

The name of the slot. Default to the productions slot if not specified.

--web-server-logging

Configure Web server logging.

accepted values: filesystem, off

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 --name
--resource-group
[--log-file]
[--slot]

Required Parameters

--name -n

Name of the web. You can configure the default using 'az configure --defaults web='.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--log-file

The downloaded zipped log file path.

default value: webapp_logs.zip
--slot -s

The name of the slot. Default to the productions slot if not specified.

az webapp log show

Get the details of a web app's logging configuration.

az webapp log show --name
--resource-group
[--slot]

Required Parameters

--name -n

Name of the web. You can configure the default using 'az configure --defaults web='.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--slot -s

The name of the slot. Default to the productions slot if not specified.

az webapp log tail

Start live log tracing for a web app.

This command may not work with web apps running on Linux.

az webapp log tail --name
--resource-group
[--provider]
[--slot]

Required Parameters

--name -n

Name of the web. You can configure the default using 'az configure --defaults web='.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--provider

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.

--slot -s

The name of the slot. Default to the productions slot if not specified.