Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Docker Timestamp When Log Timestamp is not Available in JSON log. #4981

Conversation

yophilav
Copy link
Contributor

Context:
It generates the attached file, if a module does not use the prescribed logging format (which most module do not), the timestamp is 0. This makes the logs not very useful. The timestamp irrespective of logging format is actually available from Docker log API.

Solution:
This PR issues timestamps from edgeAgent via mgmt.sock to prepending the returning log with timestamp. edgeAgent then parse the timestamp & return the value in json format to portal.

Note:
This feature requires #4970

@yophilav yophilav requested a review from ancaantochi May 13, 2021 00:49
@yophilav yophilav requested a review from damonbarry May 13, 2021 00:49
damonbarry
damonbarry previously approved these changes May 13, 2021
@yophilav yophilav requested a review from damonbarry June 17, 2021 19:19
@yophilav yophilav merged commit d336d08 into Azure:release/1.2 Jun 17, 2021
yophilav added a commit to yophilav/iotedge that referenced this pull request Jun 25, 2021
…Azure#4981)

Context:
It generates the attached file, if a module does not use the prescribed logging format (which most module do not), the timestamp is 0. This makes the logs not very useful. The timestamp irrespective of logging format is actually available from Docker log API.

Solution: 
This PR issues `timestamps` from edgeAgent via mgmt.sock to prepending the returning log with timestamp.  edgeAgent then parse the timestamp & return the value in json format to portal.

Note: 
This feature requires Azure#4970
kodiakhq bot pushed a commit that referenced this pull request Jun 25, 2021
…4981) (#5167)

Context:
It generates the attached file, if a module does not use the prescribed logging format (which most module do not), the timestamp is 0. This makes the logs not very useful. The timestamp irrespective of logging format is actually available from Docker log API.

Solution: 
This PR issues `timestamps` from edgeAgent via mgmt.sock to prepending the returning log with timestamp.  edgeAgent then parse the timestamp & return the value in json format to portal.

Note: 
This feature requires #4970
yophilav added a commit that referenced this pull request Jun 29, 2021
…#5173)

Derived from #4981

Context:
It generates the attached file, if a module does not use the prescribed logging format (which most module do not), the timestamp is 0. This makes the logs not very useful. The timestamp irrespective of logging format is actually available from Docker log API.

Solution: 
This PR issues `timestamps` from edgeAgent via mgmt.sock to prepending the returning log with timestamp.  edgeAgent then parse the timestamp & return the value in json format to portal.

Note: 
This feature requires #5172
nyanzebra pushed a commit to nyanzebra/iotedge that referenced this pull request Jul 2, 2021
…zure#4981) (Azure#5167)

Context:
It generates the attached file, if a module does not use the prescribed logging format (which most module do not), the timestamp is 0. This makes the logs not very useful. The timestamp irrespective of logging format is actually available from Docker log API.

Solution: 
This PR issues `timestamps` from edgeAgent via mgmt.sock to prepending the returning log with timestamp.  edgeAgent then parse the timestamp & return the value in json format to portal.

Note: 
This feature requires Azure#4970
ggjjj pushed a commit to ggjjj/iotedge that referenced this pull request Jul 22, 2021
…zure#4981) (Azure#5167)

Context:
It generates the attached file, if a module does not use the prescribed logging format (which most module do not), the timestamp is 0. This makes the logs not very useful. The timestamp irrespective of logging format is actually available from Docker log API.

Solution: 
This PR issues `timestamps` from edgeAgent via mgmt.sock to prepending the returning log with timestamp.  edgeAgent then parse the timestamp & return the value in json format to portal.

Note: 
This feature requires Azure#4970
damonbarry pushed a commit to damonbarry/iotedge that referenced this pull request Apr 15, 2022
…zure#4981) (Azure#5167)

Context:
It generates the attached file, if a module does not use the prescribed logging format (which most module do not), the timestamp is 0. This makes the logs not very useful. The timestamp irrespective of logging format is actually available from Docker log API.

Solution: 
This PR issues `timestamps` from edgeAgent via mgmt.sock to prepending the returning log with timestamp.  edgeAgent then parse the timestamp & return the value in json format to portal.

Note: 
This feature requires Azure#4970
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants