lens
lens copied to clipboard
Logging section json prettify and custom keyword coloring
What would you like to be added: Formatting/prettifying json in logging section and add so keywords can be color coded.
Why is this needed: Its difficult to read the logs when they are on one line, it would be nice to have the option to "prettify" json log lines. To improve readability further have a section where user can input keywords correlated to a color so logs can be both prettified and have keyword coloring
- Kubernetes distribution: GKE
- Desktop OS: macOS
I agree that reading structured json logs is not so great. Maybe a more flexible approach would be for Lens to support configuring a 'log filter' that could point to any cmd line tool. For example, we use a tool called pino-pretty
to format our JSON logs for humans. This approach would allow people to customize the log formatting.
that would be great @mjpowersjr
Waiting for this
What about wrapping something like this (https://github.com/gistia/json-log-viewer) as Lens Extensions to provide an alternative log viewer?
this would be great