Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Cloud Logging
  • Getting started
    • All guides
    • Adding records
    • Reading records
    • Managing rights to access log groups
      • Creating a log sink
      • Getting a list of sinks
      • Getting information about a sink
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • FAQ
  1. Step-by-step guides
  2. Log export
  3. Creating a log sink

Creating a log sink

Written by
Yandex Cloud
Improved by
Danila N.
Updated at April 22, 2025
Management console
CLI
API
  1. In the management console, select the folder where you want to create your log sink.

  2. Select Cloud Logging.

  3. Go to the Sinks tab.

  4. Click Create sink.

  5. (Optional) Enter a sink name and description. The name format is as follows:

    • It must be from 2 to 63 characters long.
    • It may contain lowercase Latin letters, numbers, and hyphens.
    • It must start with a letter and cannot end with a hyphen.
  6. (Optional) Add labels.

  7. In the Destination field, select Object Storage.

  8. Select the bucket to save logs to.

  9. (Optional) Specify a folder.

  10. Select a service account authorized to upload objects to the bucket.

  11. Click Create sink.

To create a log sink, run the following command:

yc logging sink create \
  --name <sink_name> \
  --service-account-id <service_account_ID> \
  --s3 bucket=<bucket_name>

Where:

  • --name: Log sink name. This is an optional parameter.
  • --service-account-id: ID of the service account authorized to upload objects to the bucket.
  • bucket: Name of the bucket to upload logs to.

Result:

id: e23s5s2jsr78********
folder_id: b1gc1t4cb638********
cloud_id: b1gvlrnlei4l********
created_at: "2023-09-24T19:05:33.367058291Z"
name: test
service_account_id: aje07l4q4vmo********
s3:
  bucket: bucket-name

To create a log sink, use the create REST API method for the Sink resource or the SinkService/Create gRPC API call.

Was the article helpful?

Previous
Deleting a log group
Next
Object Storage
Yandex project
© 2025 Yandex.Cloud LLC