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
    • ML Services
    • 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 Serverless Integrations
  • Comparison with other Yandex Cloud services
    • All guides
        • Creating a bus
        • Updating a bus
        • Writing logs
        • Deleting a bus
    • Viewing operations with service resources
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Public materials
  • Release notes

In this article:

  • Enabling logging
  • Logging destination
  • Minimum logging level
  • Disabling logging
  • Command example
  1. Step-by-step guides
  2. EventRouter
  3. Managing a bus
  4. Writing logs

Writing to the bus execution log

Written by
Yandex Cloud
Updated at August 12, 2025
  • Enabling logging
  • Logging destination
  • Minimum logging level
  • Disabling logging
  • Command example

Note

Logging is not free of charge. For more information, see the Yandex Cloud Logging documentation.

Management console
CLI
API
  1. In the management console, go to the folder containing the bus.

  2. Select Serverless Integrations.

  3. In the left-hand panel, select EventRouter.

  4. Click in the bus row and select Edit.

  5. Under Logging:

    1. Enable Write logs.

    2. In the Destination field, select:

      • Folder: To write logs to the default log group for the folder containing the bus.
      • Log group: To write logs to a custom log group.

        Select the log group to write logs to or create a new one.

    3. Optionally, select the minimum logging level.

  6. Click Save.

If you set the minimum logging level, logs of that level and higher will be written to the execution log. With no minimum logging level set, all bus logs will be written to the execution log.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

Enabling loggingEnabling logging

To write logs when creating or updating a bus, specify the --enable-logging parameter.

Logging destinationLogging destination

For logging to the folder's default log group, provide that folder's ID in the folder-id subparameter under --log-options. If the bus resides in another folder, the account used to run the command must have the logging.editor role or higher for that folder.

For logging to a custom log group, provide that log group's ID in the log-group-id subparameter under --log-options. The log group may reside in a different folder. The account used to run the command must have the logging.editor role or higher for that folder.

Minimum logging levelMinimum logging level

To set the minimum logging level, specify it in the min-level parameter when creating or updating a bus.

If you set the minimum logging level, logs of that level and higher will be written to the execution log. With no minimum logging level set, all bus logs will be written to the execution log.

Disabling loggingDisabling logging

To disable logging, specify the --disable-logging parameter when updating the bus.

Command exampleCommand example

For logging to a custom log group, run this command:

yc serverless eventrouter bus update <bus_name_or_ID> \
  --enable-logging \
  --log-options log-group-id=<log_group_ID>,min-level=<minimum_logging_level>

Where:

  • --log-options: Logging parameters:
    • log-group-id: Log group ID.
    • min-level: Minimum logging level. This is an optional setting.

Result:

id: f66302237ren********
folder_id: b1g0ijbfaqsn********
cloud_id: b1gia87mbaom********
created_at: "2025-07-13T16:47:31.559209Z"
name: my-bus
status: ACTIVE
logging_enabled: true
log_options:
  log_group_id: e23uimb4tabs********
  min_level: DEBUG

For logging to the bus execution log, use the Update REST API method for the Bus resource or the Bus/Update gRPC API call.

Was the article helpful?

Previous
Updating a bus
Next
Adding a label
© 2025 Direct Cursus Technology L.L.C.