[Yandex Cloud documentation](../../../index.md) > [Yandex Cloud CDN](../../index.md) > [Step-by-step guides](../index.md) > Resources > Configuring log export

# Configuring log export

[Log export](../../concepts/logs.md) is a paid feature. See [Yandex Cloud CDN pricing policy](../../pricing.md) for billing details.

For a description of fields of exported logs, see the [Query log reference](../../logs-ref.md).

{% note warning %}

There may be a delay with log export.

{% endnote %}

## Enabling export {#enabling}

To enable log export for a [resource](../../concepts/resource.md):

{% list tabs group=instructions %}

- Management console {#console}
  
  1. In the [management console](https://console.yandex.cloud), select the folder where your resource is located.

  1. Navigate to **Cloud CDN**.

  1. Click the resource name.

  1. Navigate to the **Export logs** tab.

  1. In the top-right corner, click **Activate**.

  1. Select **Bucket**.

  1. Optionally, specify a **Prefix** for log file names.

  1. Click **Activate**.

- API {#api}

  Use the [activate](../../api-ref/RawLogs/activate.md) REST API method for the [RawLogs](../../api-ref/RawLogs/index.md) resource or the [RawLogsService/Activate](../../api-ref/grpc/RawLogs/activate.md) gRPC API call.

{% endlist %}

Once enabled, the export status will change from `NOT_ACTIVATED` to `OK`.

If the status is `FAIL`, the service is not exporting logs. Contact [support](https://center.yandex.cloud/support).

## Editing export {#editing}

To edit export parameters:

{% list tabs group=instructions %}

- Management console {#console}
  
  1. In the [management console](https://console.yandex.cloud), select the folder where your resource is located.

  1. Navigate to **Cloud CDN**.

  1. Click the resource name.

  1. Navigate to the **Export logs** tab.

  1. In the top-right corner, click ![image](../../../_assets/console-icons/pencil.svg) **Edit**.

  1. Enter the required parameters and click **Save**.

- API {#api}

  Use the [update](../../api-ref/RawLogs/update.md) REST API method for the [RawLogs](../../api-ref/RawLogs/index.md) resource or the [RawLogsService/Update](../../api-ref/grpc/RawLogs/update.md) gRPC API call.

{% endlist %}

## Disabling export {#disabling}

To disable export:

{% list tabs group=instructions %}

- Management console {#console}
  
  1. In the [management console](https://console.yandex.cloud), select the folder where your resource is located.

  1. Navigate to **Cloud CDN**.

  1. Click the resource name.

  1. Navigate to the **Export logs** tab.

  1. In the top-right corner, click **Deactivate**.

- API {#api}

  Use the [deactivate](../../api-ref/RawLogs/deactivate.md) REST API method for the [RawLogs](../../api-ref/RawLogs/index.md) resource or the [RawLogsService/Deactivate](../../api-ref/grpc/RawLogs/deactivate.md) gRPC API call.

{% endlist %}