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

force azure zone logs into json format with timestamps #958

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

ameowlia
Copy link
Member

BEFORE

{"timestamp":"2024-08-21T20:27:04.277145579Z","level":"error","source":"rep","message":"rep.failed-to-initialize-metron-client","data":{"error":"context deadline exceeded"}}
2024-08-21 20:27:16+0000 Warning: Failed to curl azure metadata endpoint for fault domain
2024-08-21 20:27:16+0000 Warning: Failed to curl azure metadata endpoint for availability zone
{"timestamp":"2024-08-21T20:27:16.490624811Z","level":"info","source":"rep","message":"rep.wait-for-garden.ping-garden","data":{"initialTime:":"2024-08-21T20:27:16.490556255Z","session":"1","wait-time-ns:":67451}}

AFTER

{"timestamp":"2024-08-21T20:54:52.999994951Z","level":"error","source":"rep","message":"rep.failed-to-initialize-metron-client","data":{"error":"context deadline exceeded"}}
{"timestamp":"2024-08-21T20:55:05.024195434Z","level":"info","source":"rep","message":"Warning: Failed to curl azure metadata endpoint for fault domain"}
{"timestamp":"2024-08-21T20:55:05.040002342Z","level":"info","source":"rep","message":"Warning: Failed to curl azure metadata endpoint for availability zone"}
{"timestamp":"2024-08-21T20:55:05.073875102Z","level":"info","source":"rep","message":"rep.wait-for-garden.ping-garden","data":{"initialTime:":"2024-08-21T20:55:05.073819249Z","session":"1","wait-time-ns:":52730}}

It's hacky, but it works.

@ameowlia ameowlia requested a review from a team as a code owner August 21, 2024 20:58
Copy link
Member

@Birdrock Birdrock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@winkingturtle-vmw winkingturtle-vmw merged commit 0517404 into develop Oct 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

4 participants