Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Logging
  • Getting started
    • All guides
    • Adding records
    • Reading records
    • Managing log group access permissions
      • Creating a log sink
      • Getting a list of log sinks
      • Getting information about a log sink
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • 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 December 11, 2025
Management console
CLI
API
  1. In the management console, select the folder where you want to create a log sink.

  2. Go to Cloud Logging.

  3. Navigate to the Sinks tab.

  4. Click Create sink.

  5. Optionally, enter a name and description for your sink. Follow these naming requirements:

    • It must be from 2 to 63 characters long.
    • It can only contain lowercase Latin letters, numbers, and hyphens.
    • It must start with a letter and cannot end with a hyphen.
  6. Optionally, add labels.

  7. In the Destination field, select Object Storage.

  8. Select the bucket to save logs to.

  9. Optionally, 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 setting.
  • --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
© 2025 Direct Cursus Technology L.L.C.