-
Notifications
You must be signed in to change notification settings - Fork 120
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
Adding JSON formatted log feature #120
Conversation
@syedimam0012 Thank you! I like that. How about we change the flag from a |
Thanks heaps for the kind response, @linki ! I agree that it makes more sense to update this to The changes have just been committed upon testing all 3 possible cases that are Please let me know if this requires further work. I'll be happy to raise a relevant Best, |
Thanks for changing it. If you use |
b78ee60
to
6c237b5
Compare
Pleasure and modified as advised, @linki! |
Signed-off-by: Syed Imam <[email protected]>
Signed-off-by: Syed Imam <[email protected]>
Signed-off-by: Syed Imam <[email protected]>
Signed-off-by: Syed Imam <[email protected]>
6c237b5
to
a3fa6d5
Compare
@syedimam0012 Thanks a lot! |
What this is about?
This feature allows having JSON formatted (i.e. structured) logs. This means targeted querying and filtering can be performed in e.g. Grafana, Kibana, and similar dashboard tools.
Tested?
This has been tested in a local Kubernetes cluster using a modified fork branch of
helm/charts/stable/chaoskube
where I turned on this new feature asCLI
option. You can see this modification here.An example of the structured output is here:
{"level":"info","msg":"terminating pod","name":"compose-api-6fbc44c575-mm47c","namespace":"docker","time":"2019-01-25T05:14:50Z"}
What's next?
If this gets merged, I'll raise a
pull request
in relevant helm chart with the modified fork branch mentioned earlier.