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
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Getting started with Yandex Cloud
    • Step 1. Registration
    • Step 2. Billing
    • Step 3. Creating an organization
    • Step 4. Selecting a service plan
    • Step 5. User management
    • Step 6. Resource hierarchy
    • Step 7. Setting up a secure network configuration
    • Step 8. Logging
  • Initial grant

In this article:

  • Create a log group
  • Assign roles for a log group
  • View charts
  1. For businesses
  2. Step 8. Logging

Set up logging and analyze performance

Written by
Yandex Cloud
Improved by
Danila N.
Updated at May 5, 2025
  • Create a log group
  • Assign roles for a log group
  • View charts

The guide in this checklist item will help you set up operations with logs and analyze performance.

Create a log groupCreate a log group

Management console
CLI
API
  1. In the management console, select the folder where you want to create your log group.

  2. Open Cloud Logging.

  3. Click Create group.

  4. (Optional) Enter a name and description for the log group. The name format is as follows:

    • It must be from 2 to 63 characters long.
    • It may contain lowercase Latin letters, numbers, and hyphens.
    • It must start with a letter and cannot end with a hyphen.
  5. Set the log group record retention period.

  6. Click Create group.

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

The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

Note

The record retention period can only be specified in hours, minutes, or seconds, such as 1h or 1440m.

To create a log group, run this command:

yc logging group create --name=group --retention-period=1h
  • --name: Log group name.
  • --retention-period: Retention period for log group records. This is an optional parameter.

Result:

done (1s)
id: af3flf29t8**********
folder_id: aoek6qrs8t**********
cloud_id: aoegtvhtp8**********
created_at: "2021-06-24T09:56:38.970Z"
name: group
status: ACTIVE
retention_period: 3600s

You can create a custom log group using the create API method.

Assign roles for a log groupAssign roles for a log group

CLI
API

To assign a role to a custom log group, run this command:

  • To a user:
    yc logging group add-access-binding \ --name <log_group_name> \ --user-account-id <user_ID> \ --role <role>
    Result:
    done (1s)
    • To a service account:
      yc logging group add-access-binding \
          --name <log_group_name> \
          --service-account-id <service_account_ID> \
          --role <role>
      
      Result:
      done (1s)
      
    • To all authenticated users (the All authenticated users public group):
      yc logging group add-access-binding \
          --name <log_group_name> \
          --all-authenticated-users \
          --role <role>
      
      Result:
      done (1s)
      

To assign roles for a custom log group, use the API setAccessBindings method.

View chartsView charts

  1. In the management console, select the folder containing your log group.
  2. Open Cloud Logging.
  3. Select a log group.
  4. Go to the Monitoring tab.
  5. The following charts will open on the page:
    • Records successfully ingested: Number of records delivered to the Cloud Logging system. Only user logs are counted.
    • Records saved: Number of records saved to the Cloud Logging system. Service and user logs are counted.
    • Records read: Number of records read.
    • Records ingest errors: Number of errors when adding records.
    • Records save lag: Difference between the time of record delivery and its saving to the Cloud Logging system.

Was the article helpful?

Previous
Step 7. Setting up a secure network configuration
Next
Initial grant
Yandex project
© 2025 Yandex.Cloud LLC