Skip to main content

Logs in S3

Last update:

The logs contain information about requests to public buckets.

You can upload logs through the control panel.You can also work with logs through the Selectel Storage API.

Uploaded logs are saved to the selected bucket.Log storage is charged in the same way as storing other objects in the storage, more details in the S3 Payment and Pricing Model instructions.

Log fields

client_ipIP address from which the request came
client_to_server_bytesNumber of bytes transferred during a request to the storage
bucket_nameName of the bucket to which the request was made
hostHost header — the address at which the request was made
http_methodHTTP method of request to storage
pathPath to the bucket or object in the storage to which the request was made
queryRequest parameters
server_to_client_bytesNumber of bytes transferred in response to a request
statusHTTP status code in response to a request
timestampDate and time of logging

Upload logs

  1. Create a log upload.
  2. Download the log upload.

1. Create a log upload

  1. In the control panel, on the top menu, click Products and select S3.
  2. Go to the Logs section.
  3. Select a region and pool.
  4. Click Create Upload.
  5. Specify the period for which you want to upload logs.
  6. Optional: select the fields that will be displayed in the logs.If not selected, all fields will be displayed in the upload.
  7. Optional: select the bucket for which logs will be included in the upload.If you do not select bucket, the upload will include logs for all bucket.
  8. Optionally: specify a retention period for logs or leave indefinite storage.After the retention period expires, the log file will be deleted from the bucket.
  9. Select the bucket in which the log file will be saved.If there are no bucket in the repository, click Create Bucket and create a new bucket.
  10. Click Create Upload.The upload will appear on the Log Upload Log page with a status of IN PROGRESS.When the upload goes to DONE status, you can download it.

2. Download the log upload

You can download a log upload that has not expired.

For your information

If the deadline has expired, the upload will be displayed on the Log Upload Log page, but the log file will be deleted and the download will be unavailable.You can recreate the upload with the same parameters.

  1. In the control panel, on the top menu, click Products and select S3.
  2. Go to the Logs section.
  3. From the upload menu, select Download Upload.

Re-create log upload

If the storage period of the log file has expired or an error occurred when creating the upload, you can repeat the upload with the same parameters.

  1. In the control panel, on the top menu, click Products and select S3.
  2. Go to the Logs section.
  3. From the menu of the upload, select Recreate Upload.The new upload will be added as a separate line on the Log Upload Log page with a status of IN PROGRESS.When the upload goes to DONE status, you can download it.