Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • 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
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Logging
  • Getting started
  • Migrating to Monium
    • 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 February 4, 2026
View in Markdown
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:

    • Length: between 3 and 63 characters.
    • 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
© 2026 Direct Cursus Technology L.L.C.