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. #5173

Merged

Conversation

yophilav
Copy link
Contributor

@yophilav yophilav commented Jun 25, 2021

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

@yophilav yophilav requested a review from damonbarry June 25, 2021 20:43
damonbarry
damonbarry previously approved these changes Jun 29, 2021
@yophilav yophilav merged commit b4d989b into Azure:release/1.1 Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants