PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/logs/?api-version=2023-01-01

Description for Updates the logging configuration of an app.

Servers

Path parameters

Name Type Required Description
name String Yes

Name of the app.

subscriptionId String Yes

Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).

resourceGroupName String Yes

Name of the resource group to which the resource belongs.

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
id String No

Resource Id.

name String No

Resource Name.

properties Object No

SiteLogsConfig resource specific properties

properties.applicationLogs Object No

Application logs configuration.

properties.applicationLogs.fileSystem Object No

Application logs to file system configuration.

properties.applicationLogs.fileSystem.level String No

Log level.

Possible values:

  • "Verbose"
  • "Off"
  • "Information"
  • "Error"
  • "Warning"

Default value: "Off"

properties.applicationLogs.azureTableStorage Object No

Application logs to Azure table storage configuration.

properties.applicationLogs.azureTableStorage.sasUrl String Yes

SAS URL to an Azure table with add/query/delete permissions.

properties.applicationLogs.azureTableStorage.level String No

Log level.

Possible values:

  • "Verbose"
  • "Off"
  • "Information"
  • "Error"
  • "Warning"
properties.applicationLogs.azureBlobStorage Object No

Application logs azure blob storage configuration.

properties.applicationLogs.azureBlobStorage.sasUrl String No

SAS url to a azure blob container with read/write/list/delete permissions.

properties.applicationLogs.azureBlobStorage.retentionInDays Integer No

Retention in days. Remove blobs older than X days. 0 or lower means no retention.

properties.applicationLogs.azureBlobStorage.level String No

Log level.

Possible values:

  • "Verbose"
  • "Off"
  • "Information"
  • "Error"
  • "Warning"
properties.httpLogs Object No

Http logs configuration.

properties.httpLogs.fileSystem Object No

Http logs to file system configuration.

properties.httpLogs.fileSystem.retentionInDays Integer No

Retention in days. Remove files older than X days. 0 or lower means no retention.

properties.httpLogs.fileSystem.enabled Boolean No

True if configuration is enabled, false if it is disabled and null if configuration is not set.

properties.httpLogs.fileSystem.retentionInMb Integer No

Maximum size in megabytes that http log files can use. When reached old log files will be removed to make space for new ones. Value can range between 25 and 100.

properties.httpLogs.azureBlobStorage Object No

Http logs to azure blob storage configuration.

properties.httpLogs.azureBlobStorage.sasUrl String No

SAS url to a azure blob container with read/write/list/delete permissions.

properties.httpLogs.azureBlobStorage.retentionInDays Integer No

Retention in days. Remove blobs older than X days. 0 or lower means no retention.

properties.httpLogs.azureBlobStorage.enabled Boolean No

True if configuration is enabled, false if it is disabled and null if configuration is not set.

properties.detailedErrorMessages Object No

Enabled configuration.

properties.detailedErrorMessages.enabled Boolean No

True if configuration is enabled, false if it is disabled and null if configuration is not set.

properties.failedRequestsTracing Object No

Enabled configuration.

properties.failedRequestsTracing.enabled Boolean No

True if configuration is enabled, false if it is disabled and null if configuration is not set.

type String No

Resource type.

kind String No

Kind of resource.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.