Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Yandex IoT Core
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Sending messages
    • Subscribing a device or registry to receive messages
    • Viewing the connection log
    • Creating a trigger for a topic
    • Managing registries
      • Getting information about registries
      • Creating a registry
      • Updating a registry
      • Deleting a registry
    • Managing devices
      • Managing topic aliases
        • Creating an alias
        • Getting a list of aliases
        • Updating an alias
        • Deleting an alias
      • Getting information about devices
      • Creating a device
      • Updating a device
      • Deleting a device
    • Managing certificates
      • Create a certificate
      • Managing registry certificates
      • Managing device certificates
    • Managing passwords
      • Managing registry passwords
      • Managing device passwords
  • Concepts
    • Authorization
    • Relationship between service resources
    • MQTT broker connection parameters
    • Sending messages to an MQTT broker via gRPC
    • Topic
    • Backups
    • Quotas and limits
  • Use cases
    • All use cases
    • Working with Mosquitto
      • Sending messages
      • Subscribing a device or registry to receive messages
    • Working with Yandex IoT Core from an Android device in Java
    • Working with Yandex IoT Core in C#
    • Working with Yandex IoT Core in Java
    • Writing data from a device to Managed Service for PostgreSQL
  • Access management
  • Pricing policy
  • API reference
    • Authentication in the API
    • gRPC
      • Overview
      • DeviceDataService
      • DeviceService
      • RegistryDataService
      • RegistryService
      • OperationService
    • REST
      • Overview
      • Device
        • Overview
        • addCertificate
        • addPassword
        • create
        • delete
        • deleteCertificate
        • deletePassword
        • get
        • list
        • listCertificates
        • listOperations
        • listPasswords
        • update
      • DeviceData
        • Overview
        • publish
      • Registry
        • Overview
        • addCertificate
        • addPassword
        • create
        • delete
        • deleteCertificate
        • deletePassword
        • get
        • list
        • listCertificates
        • listDeviceTopicAliases
        • listOperations
        • listPasswords
        • update
      • RegistryData
        • Overview
        • publish
  • Questions and answers
  1. Step-by-step instructions
  2. Viewing the connection log

Viewing the connection log

  • 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 theregistry and devices. The log uses Coordinated Universal Time, 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 where you want to view the registry connection log.

  2. Select Yandex IoT Core.

  3. Select the registry with the desired device from the list.

  4. In the left part of the window, select Logs.

When viewing the log, you can set a specific interval using the --since and --until flags. If no interval is specified when invoking a function, information for the last 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 don't have the Yandex.Cloud command line interface yet, install and initialize it.

The folder specified in the CLI profile is used by default. 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: "94ea0421199ec70f1f3d359a1c167a81de4cf6ec", address: "77.88.15.128:53171", clientID: "YCCmdLine"
    2019-09-19 18:51:02     some of subscriptions failed: not allowed to subscribe: ["$device/areqjd6un3afc3cefcvm/events"]
    2019-09-19 18:52:30     disconnected: client disconnected
    2019-09-19 18:52:36     connected, cert: "94ea0421199ec70f1f3d359a1c167a81de4cf6ec", address: "77.88.15.128:53198", clientID: "YCCmdLine"
    2019-09-19 18:52:36     some of subscriptions failed: not allowed to subscribe: ["$device/areqjd6un3afc3cefcvm/events"]
    2019-09-19 18:52:54     disconnected: client disconnected
    2019-09-19 18:52:58     connected, cert: "94ea0421199ec70f1f3d359a1c167a81de4cf6ec", address: "77.88.15.128: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 where you want to view the device connection log.

  2. Select Yandex IoT Core.

  3. Select the registry with the desired device from the list.

  4. In the left part of the window, select Devices.

  5. Select the desired device from the list.

  6. In the left part of the window, select Logs.

When viewing the log, you can set a specific interval using the --since and --until flags. If no interval is specified when invoking a function, information for the last 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 don't have the Yandex.Cloud command line interface yet, install and initialize it.

The folder specified in the CLI profile is used by default. 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: "ea7bd563e2352ad87e2aca529cfe3d0c3255281c", address: "77.88.15.128:53189", clientID: "YCCmdLine"
    2019-09-19 18:52:03     disconnected: publish to topic "$device/areqjd6un3afc3cefcvm/events" not allowed
    2019-09-19 18:52:38     connected, cert: "ea7bd563e2352ad87e2aca529cfe3d0c3255281c", address: "77.88.15.128:53201", clientID: "YCCmdLine"
    2019-09-19 18:52:38     disconnected: publish to topic "$device/areqjd6un3afc3cefcvm/events" not allowed
    2019-09-19 18:52:51     connected, cert: "ea7bd563e2352ad87e2aca529cfe3d0c3255281c", address: "77.88.15.128:53206", clientID: "YCCmdLine"
    2019-09-19 18:52:51     disconnected: client disconnected
    2019-09-19 18:53:01     connected, cert: "ea7bd563e2352ad87e2aca529cfe3d0c3255281c", address: "77.88.15.128:53213", clientID: "YCCmdLine"
    2019-09-19 18:53:01     disconnected: client disconnected
    2019-09-19 18:53:03     connected, cert: "ea7bd563e2352ad87e2aca529cfe3d0c3255281c", address: "77.88.15.128:53217", clientID: "YCCmdLine"
    2019-09-19 18:53:03     disconnected: client disconnected
    2019-09-19 18:53:04     connected, cert: "ea7bd563e2352ad87e2aca529cfe3d0c3255281c", address: "77.88.15.128:53220", clientID: "YCCmdLine"
    2019-09-19 18:53:04     disconnected: client disconnected
    
In this article:
  • View the registry connection log
  • View the device connection log
Language
Careers
Privacy policy
Terms of use
© 2021 Yandex.Cloud LLC