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 for business
    • 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 Containers
  • Comparing with other Yandex Cloud services
    • All guides
    • Getting an IAM token for a service account using a container
      • Making a revision active
      • Changing the container operation mode
      • Adding environment variables
      • Specifying a cloud network
      • Transferring Yandex Lockbox secrets
      • Viewing monitoring charts
        • Viewing logs
        • Writing logs
      • Migration to the ru-central1-d availability zone
      • Deleting a container
    • Viewing operations with service resources
  • Access management
  • Tools
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ
  1. Step-by-step guides
  2. Managing a container
  3. Managing logs
  4. Viewing logs

Viewing container logs

Written by
Yandex Cloud
Updated at June 11, 2025

All times in the log are UTC.

Management console
CLI
  1. In the management console, select Serverless Containers.
  2. Click the container to view its runtime log.
  3. Go to the Logs tab and specify the period to view the logs for. The default period is 1 hour.

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.

When viewing the log, you can set a specific time interval using the --since and --until parameters. If you do not specify a time interval, the log will show info for the last hour.

Using parameters:

  • --since: Time N and later.

  • --until: Time N and earlier.

If you only specify a single parameter, you will see info for one hour before or after time N, depending on the parameter.

You can use one of these time formats:

  • HH:MM:SS, e.g., 15:04:05.

  • RFC-3339, e.g., 2006-01-02T15:04:05Z, 2h, or 3h30m ago.

To access a container, use its name or unique ID. To get them, get a list of containers in the folder.

View the container runtime log:

yc logging read --resource-ids=<container_ID>

Result:

2021-12-07 10:39:03  INFO START RequestID: 24ad08bd-10f7-4e76-9f08-b2b1********
2021-12-07 10:39:03       Hi, I'm inside
2021-12-07 10:39:03       runtime pid 76: exited with 0
...
2021-12-07 10:42:04  INFO END RequestID: 24ad08bd-10f7-4e76-9f08-b2b1********

Learn more about working with logs in the Yandex Cloud Logging documentation.

Was the article helpful?

Previous
Viewing monitoring charts
Next
Writing logs
© 2025 Direct Cursus Technology L.L.C.