Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI Studio
    • 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
  • Pricing
  • 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
        • Object Storage
        • Data Streams
      • 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. Exporting logs
  4. Data Streams

Exporting logs to Data Streams

Written by
Yandex Cloud
Updated at July 15, 2025
Management console
CLI
API
  1. In the management console, select the folder with the log group.
  2. Select Cloud Logging.
  3. Next to the log group, click .
  4. In the menu that opens, click Edit.
  5. In the Stream field, select an existing data stream or create a new one.
  6. Click Save.

To export logs to a data stream, run this command:

yc logging group update \
  --name=<log_group_name> \
  --data-stream=<stream_ID>

Where:

  • --name: Log group name.
  • --data-stream: Data stream ID in Yandex Data Streams consisting of the availability zone, cloud ID, database ID, and data stream name.

For example, your stream ID will appear as /ru-central1/b1gvlrnlei4l********/etn780rpm7e5********/default if:

  • ru-central1: Region.
  • b1gvlrnlei4l********: Cloud ID.
  • etn780rpm7e5********: YDB database ID.
  • default: Stream name.

To export logs to a data stream, use the update REST API method for the LogGroup resource or the LogGroupService/Update gRPC API call.

The specified data stream will automatically receive the records added to your log group.

Was the article helpful?

Previous
Object Storage
Next
Getting a list of log sinks
© 2025 Direct Cursus Technology L.L.C.