Azure IoT Edge module log location

断了今生、忘了曾经 提交于 2019-12-23 12:44:21

问题


Where are the logs exposed by the iotedge logs <container> command stored?

Where would that be generally on Linux?


回答1:


Simply do a docker inspect <Container ID> and under LogPath you will get the current location of the container. E.g. for EdgeHub on my machine: LogPath:

/var/lib/docker/containers/f8ecdf408f94f5627ac635223ce89dd9b1433705f342d548e09863cedf0fc950/f8ecdf408f94f5627ac635223ce89dd9b1433705f342d548e09863cedf0fc950-json.log



回答2:


By default, they are stored in /var/lib/docker/containers//-json.log.



来源:https://stackoverflow.com/questions/53732960/azure-iot-edge-module-log-location

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!