Azure-Samples / iotedge-logging-and-monitoring-solution

IoT Edge Logging and Monitoring Solution (ELMS) is an architecture and sample cloud workflow that enables automated retrieval of logs and metrics from IoT Edge devices
MIT License
42 stars 21 forks source link

Log message from modules getting split into multiple line items, when submitted to log analytics #27

Open rashmisingh622 opened 2 years ago

rashmisingh622 commented 2 years ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

just deploy the solution by using the powershell script after the deployment is successful, analyze the logs in log analytics. Every line item from a single message comes as a separate log in log analytics. For example, if the log message is - { "id": "someId", "uri": "rtsp://rtspsim:554/media/sample.mkv", .... }

The above log message will be split into 4 line items in log analytics iotedgemodulelogs_CL table. 1st line contains the opening curly brace, the second line contains the id and so on.

Any log messages given by the failure

No

Expected/desired behavior

Expect behavior is, for a log message spanning across multiple line items in the "Message", one log entry should be created in log analytics.

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?) The modules are deployed on a simulated stack edge device (Linux (ubuntu 18.04))

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.