question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Collection of logs generated by apps running in modules

See original GitHub issue

Hi 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:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
veyallacommented, Jul 1, 2020

Not currently, but the log pull mechanism in going to be GA in the next release.

0reactions
harika-thallamcommented, Oct 15, 2019

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Collect, Customize, and Centralize Python Logs
This allows you to see exactly which module in your application generated each log message, so you can interpret your logs more clearly....
Read more >
intellij idea - Spring Boot App log file is being saved to the ...
I am expecting that the log file will be created/stored at the app's root directory. However, the log file was saved in the...
Read more >
A Practical Guide to Kubernetes Logging
The first layer of logs that can be collected from a Kubernetes cluster are those being generated by your containerized applications. The best...
Read more >
Log storage and monitoring options in Azure Container Apps
System logs generated by Azure Container Apps. Spring App console logs. You can choose between these logs destinations: Log Analytics: Azure ...
Read more >
Application logging with Flask
In this tutorial, I will cover how to log Flask application events based on their severity levels and how to test the logging...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found