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
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Logging
  • Getting started
    • All guides
    • Adding records
    • Reading records
    • Managing rights to access log groups
      • Creating a log sink
        • Object Storage
        • Data Streams
      • 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. Exporting logs
  4. Data Streams

Exporting logs to Data Streams

Written by
Yandex Cloud
Updated at March 6, 2025
Management console
CLI
API
  1. In the management console, select the folder containing your log group.
  2. Select Cloud Logging.
  3. In the line with the log group, click .
  4. In the menu that opens, click Edit.
  5. In the Stream field, select the 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: ID of the data stream 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.

Records added to the log group will be automatically redirected to the specified data stream.

Was the article helpful?

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