Configuring log export
Log export is a paid feature. See Yandex Cloud CDN pricing policy for billing details.
For a description of fields of exported logs, see the Query log reference.
Warning
There may be a delay with log export.
Enabling export
To enable log export for a resource:
-
Create an Object Storage bucket.
Note
Do not configure an access policy that denies access to the bucket. If your access policy restricts access to the bucket, you will get the
403 Forbiddenerror in response to your log export request. Even after you restore access to the bucket, logs that could not be written will not be exported. -
Enable log export:
Management consoleAPI-
In the management console
, select the folder where your resource is located. -
Navigate
to Cloud CDN. -
Click the resource name.
-
Navigate to the Export logs tab.
-
In the top-right corner, click Activate.
-
Select Bucket.
-
Optionally, specify a Prefix for log file names.
-
Click Activate.
Use the activate REST API method for the RawLogs resource or the RawLogsService/Activate gRPC API call.
-
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
Editing export
To edit export parameters:
-
In the management console
, select the folder where your resource is located. -
Navigate
to Cloud CDN. -
Click the resource name.
-
Navigate to the Export logs tab.
-
In the top-right corner, click
Edit. -
Enter the required parameters and click Save.
Use the update REST API method for the RawLogs resource or the RawLogsService/Update gRPC API call.
Disabling export
To disable export:
-
In the management console
, select the folder where your resource is located. -
Navigate
to Cloud CDN. -
Click the resource name.
-
Navigate to the Export logs tab.
-
In the top-right corner, click Deactivate.
Use the deactivate REST API method for the RawLogs resource or the RawLogsService/Deactivate gRPC API call.