Skip to content

JSON logging format. #4087

Answered by antgamdia
foal asked this question in Q&A
Jan 15, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @foal, I don't think there is, as of today, a direct way to enable structured JSON logs as the default output in Kubeapps. We are using klog as the logging library (but not in every file, though, see #3848). I guess a good starting point is the migration guide the k8s folks wrote: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-instrumentation/migration-to-structured-logging.md
Alternatively, you can use a solution like Logstash for parsing the log entries.

If you suggest any specific approach for implementing structured logs, please feel free to send a PR!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@absoludity
Comment options

@antgamdia
Comment options

Answer selected by foal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants