Is there a supported/standard way to send container logs (info, errors etc.) to Azure Monitor, as there is for metrics with the Metrics collector module in Azure IoT Edge?
I know about this solution, but is there a supported/standard way to solve this? https://github.com/veyalla/logspout-loganalytics
/Jonas
CodePudding user response:
There is IoT ELMS, which is mentioned in the docs. It leverages an OpenTelemetry module that uploads logs to Log Analytics. It also describes a second way of doing it, which utilizes a timed Azure Function to send Direct Methods to the device, asking for the logs and then uploading them to Log Analytics.
But the repository you linked is by Venkat Yalla; his team is responsible for the Metrics collector, so I'd say that module is as close to standard as it'll get.