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
Yandex Cloud Functions
  • Comparison with other Yandex Cloud services
    • All guides
    • Using functions to get an IAM token for a service account
    • Connecting to managed databases from functions
      • Adding environment variables
      • Specifying a cloud network
      • Transferring Yandex Lockbox secrets
      • Allocating memory for the /tmp directory
      • Viewing monitoring charts
        • Viewing logs
        • Writing logs
      • Migration to the ru-central1-d availability zone
      • Deleting a function version
      • Deleting a function
    • Viewing operations with service resources
  • Tools
  • Pricing policy
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ
  1. Step-by-step guides
  2. Managing a function
  3. Managing logs
  4. Viewing logs

Viewing function logs

Written by
Yandex Cloud
Updated at May 5, 2025

All times in the log are UTC.

Management console
CLI
  1. In the management console, select the folder containing the function.
  2. Select Cloud Functions.
  3. Click a function to view its runtime log.
  4. In the window that opens, go to Logs and specify the period for which you want to view logs. The default period is 1 hour.

When viewing the log, you can set a specific interval using the --since and --until flags. If no time interval is specified, information for the previous hour is displayed.

The following flags are used:

  • --since: Time N and later.

  • --until: Time N and earlier.

If you only specify one flag, information is displayed for the hour before or after N depending on the flag.

Allowed time formats:

  • HH:MM:SS. Example: 15:04:05.

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

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.

To find out the name or unique ID of a function, get a list of functions in the folder.

View the function execution log:

yc serverless function logs <function_name>

Result:

2019-07-04 09:27:43     START RequestID: 34dc9533-ed6e-4468-b9f2-2aa0******** Version: b09i2s85a0c1********
2019-07-04 09:27:43     END RequestID: 34dc9533-ed6e-4468-b9f2-2aa0********
2019-07-04 09:27:43     REPORT RequestID: 34dc9533-ed6e-4468-b9f2-2aa0******** Duration: 538.610 ms Billed Duration: 538.700 ms Memory Size: 128 MB Max Memory Used: 13 MB
2019-07-04 09:29:25     START RequestID: 5b6a3779-dcc8-44ec-8ee2-2e7f******** Version: b09i2s85a0c1********
2019-07-04 09:29:26     END RequestID: 5b6a3779-dcc8-44ec-8ee2-2e7f********
2019-07-04 09:29:26     REPORT RequestID: 5b6a3779-dcc8-44ec-8ee2-2e7f******** Duration: 554.904 ms Billed Duration: 555.000 ms Memory Size: 128 MB Max Memory Used: 13 MB
...

Note

If you called a function with a specific tag, you must also specify this tag when viewing the execution log: yc serverless function logs my-python-function --tag test.

To learn more about working with logs, see the Yandex Cloud Logging documentation.

Was the article helpful?

Previous
Viewing monitoring charts
Next
Writing logs
Yandex project
© 2025 Yandex.Cloud LLC