-
Hi, Is it possible to switch the logging format of Kubeapps to JSON? Best, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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 If you suggest any specific approach for implementing structured logs, please feel free to send a PR! |
Beta Was this translation helpful? Give feedback.
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.mdAlternatively, 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!