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 IoT Core
    • All guides
    • Sending messages
    • Subscribing a device or registry to receive messages
    • Exporting messages to Data Streams
    • Viewing the connection log
    • Viewing operations with the service's resources
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ

In this article:

  • View the registry connection log
  • View the device connection log
  1. Step-by-step guides
  2. Viewing the connection log

Viewing the connection log

Written by
Yandex Cloud
Updated at May 13, 2025
  • View the registry connection log
  • View the device connection log

The log contains information about connecting/disconnecting devices and errors. You can view connection logs for the registry and devices. Time is specified in UTC.

View the registry connection log

The registry connection log contains information about operations performed with the registry certificate. Operations of devices that belong to this registry are not included in this log.

Management console
CLI
  1. In the management console, select the folder to view the registry connection log in.
  2. Select IoT Core.
  3. Select the registry with the required device from the list.
  4. On the left side of the window, select the Logs section.

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) command line interface 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.

  1. Get a list of registries in a folder.

  2. View the registry connection log:

    yc iot registry logs my-registry
    

    Result:

    2019-09-19 18:51:02     connected, cert: "94ea0421199ec70f1f3d359a1c167a81********", address: "77.88.**.***:53171", clientID: "YCCmdLine"
    2019-09-19 18:51:02     some of subscriptions failed: not allowed to subscribe: ["$device/areqjd6un3af********/events"]
    2019-09-19 18:52:30     disconnected: client disconnected
    2019-09-19 18:52:36     connected, cert: "94ea0421199ec70f1f3d359a1c167a81********", address: "77.88.**.***:53198", clientID: "YCCmdLine"
    2019-09-19 18:52:36     some of subscriptions failed: not allowed to subscribe: ["$device/areqjd6un3af********/events"]
    2019-09-19 18:52:54     disconnected: client disconnected
    2019-09-19 18:52:58     connected, cert: "94ea0421199ec70f1f3d359a1c167a81********", address: "77.88.**.***:53209", clientID: "YCCmdLine"
    2019-09-19 18:53:32     disconnected: client disconnected
    

View the device connection log

The device connection log contains information about operations performed with the device certificate.

Management console
CLI
  1. In the management console, select the folder to view the device connection log in.
  2. Select IoT Core.
  3. Select the registry with the required device from the list.
  4. On the left side of the window, select the Devices section.
  5. Select the device from the list.
  6. On the left side of the window, select the Logs section.

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) command line interface 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.

  1. Get a list of devices in a registry.

  2. View the device connection log:

    yc iot devices logs my-device
    

    Result:

    2019-09-19 18:52:03     connected, cert: "ea7bd563e2352ad87e2aca529cfe3d0c********", address: "77.88.**.***:53189", clientID: "YCCmdLine"
    2019-09-19 18:52:03     disconnected: publish to topic "$device/areqjd6un3af********/events" not allowed
    2019-09-19 18:52:38     connected, cert: "ea7bd563e2352ad87e2aca529cfe3d0c********", address: "77.88.**.***:53201", clientID: "YCCmdLine"
    2019-09-19 18:52:38     disconnected: publish to topic "$device/areqjd6un3af********/events" not allowed
    2019-09-19 18:52:51     connected, cert: "ea7bd563e2352ad87e2aca529cfe3d0c********", address: "77.88.**.***:53206", clientID: "YCCmdLine"
    2019-09-19 18:52:51     disconnected: client disconnected
    2019-09-19 18:53:01     connected, cert: "ea7bd563e2352ad87e2aca529cfe3d0c********", address: "77.88.**.***:53213", clientID: "YCCmdLine"
    2019-09-19 18:53:01     disconnected: client disconnected
    2019-09-19 18:53:03     connected, cert: "ea7bd563e2352ad87e2aca529cfe3d0c********", address: "77.88.**.***:53217", clientID: "YCCmdLine"
    2019-09-19 18:53:03     disconnected: client disconnected
    2019-09-19 18:53:04     connected, cert: "ea7bd563e2352ad87e2aca529cfe3d0c********", address: "77.88.**.***:53220", clientID: "YCCmdLine"
    2019-09-19 18:53:04     disconnected: client disconnected
    

Was the article helpful?

Previous
Exporting messages to Data Streams
Next
Device registry
© 2025 Direct Cursus Technology L.L.C.