Logs in S3
The logs contain information about requests to buckets.
You can export logs via the control panel. You can also work with logs via the Object Storage API.
Exported logs are saved to the selected bucket. Log storage is billed the same way as storing other objects in the storage; for more details, see the S3 billing model and pricing instruction.
Log fields
Export logs
1. Create a log export
- In the control panel, on the top menu, click Products and select S3.
- Go to the Logs section.
- Select a region and pool.
- Click Create export.
- Specify the period for which you want to export logs.
- Optional: select the fields to be displayed in the logs. If you do not select any, all fields will be displayed in the export.
- Optional: select the buckets for which logs will be included in the export. If you do not select any buckets, the export will include logs for all buckets.
- Optional: specify the log retention period or leave it for indefinite storage. Once the retention period expires, the log file will be deleted from the bucket.
- Select the bucket where the log file will be saved. If there are no buckets in the storage, click Create bucket and create a new bucket.
- Click Create export. The export will appear on the Log export log page with the status
IN PROGRESS. When the export status changes toDONE, you will be able to download it.
2. Download a log export
You can download an export of logs that has not yet expired.
If the period has expired, the export will still be displayed on the Log export log page, but the log file will be deleted, and downloading will be unavailable. You can recreate the export with the same parameters.
- In the control panel, on the top menu, click Products and select S3.
- Go to the Logs section.
- In the export menu, select Download export.
Re-create a log export
If the log file storage period has expired or an error occurred during export creation, you can repeat the export with the same parameters.
- In the control panel, on the top menu, click Products and select S3.
- Go to the Logs section.
- In the export menu, select Recreate export. A new export will be added as a separate row on the Log export log page with the status
IN PROGRESS. When the export status changes toDONE, you will be able to download it.