There is a need to keep statistics of the uptime of the connected devices, nothing better than taking this information from the logs, I have not yet found.

Main issues:

  1. Are there any better or simpler ways?
  2. If not, with what tools can I log connections and disconnect devices in the IoT hub?

I tried:

  • -Event grid ("Events" tab in the IoT hub). It did not fit, because "order of events is not guaranteed" .

  • -Diagnostics in IoT hub. It did not fit, because "The events emitted by the IoT service using Azure Monitor diagnostic logs are not
    guaranteed to be reliable or ordered. Some events might be lost or ordered out of order. " .

  • -Device heartbeat. The documentation says: " Only use the connectionState field during development and debugging ."
  • -Function application. Crookedly works with a large load, how to trigger the connection / disconnection of the device?

    0