Collection of logs generated by apps running in modules
See original GitHub issueHi team, I am looking for a solution to send the application logs generated on iot edge devices to an azure log analytics workspace.
I have tried using the Microsoft Monitoring agent using which I was able to send logs generated by running docker containers. However, on an edge device, we are using the moby engine instead of the docker daemon because of which monitoring agent is not collecting the log records(followed this set up to run with docker - https://docs.microsoft.com/en-us/azure/azure-monitor/insights/containers#install-and-configure-windows-container-hosts). Moreover, since I am running my edge environment on windows, I didn’t find any container image of monitoring agent targeted for windows.(present for Linux https://hub.docker.com/r/microsoft/oms/)
Expected Behavior
Able to stream application logs to log analytics workspace possibly using the Microsoft Monitoring agent
Current Behavior
Tell us what happens instead of the expected behavior
Steps to Reproduce
Context (Environment)
Output of iotedge check
Click here
<Paste here between the triple backticks>
Device Information
- Host OS : Windows IoT Core
- Architecture : amd64
- Container OS: Windows containers
Runtime Versions
- iotedged : 1.0.8
- Edge Agent : mcr.microsoft.com/azureiotedge-agent:1.0
- Edge Hub : mcr.microsoft.com/azureiotedge-hub:1.0
- Docker/Moby : Client: Version: 3.0.5 API version: 1.40 Go version: go1.12.1 Git commit: ba9934d4 Built: Thu Apr 18 22:01:41 2019 OS/Arch: windows/amd64 Experimental: false
Server:
Engine:
Version: 3.0.5
API version: 1.40 (minimum version 1.24)
Go version: go1.12.1
Git commit: dbe4a30
Built: Thu Apr 18 22:07:58 2019
OS/Arch: windows/amd64
Experimental: false
Note: when using Windows containers on Windows, run docker -H npipe:////./pipe/iotedge_moby_engine version
instead
Logs
iotedged logs
<Paste here between the triple backticks>
edge-agent logs
<Paste here between the triple backticks>
edge-hub logs
<Paste here between the triple backticks>
Additional Information
I looking for a completely automated way of streaming application logs to azure log analytics workspace.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Not currently, but the log pull mechanism in going to be GA in the next release.
I understand that the features you have directed me to are in the experimental stage. Is there any recommended/preview feature that may be more production fit? @veyalla