argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
17.8k stars 5.43k forks source link

Add JSON logs parsing into `pod-logs-viewer` #7960

Open Sujimoshi opened 2 years ago

Sujimoshi commented 2 years ago

Summary

Add JSON logs parsing into pod-logs-viewer

Motivation

it would be very convenient

Proposal

On click on log line try to parse it, if it is possible stringify it again but with indentation enabled

Screenshot 2021-12-16 at 17 16 39
Sujimoshi commented 2 years ago

Possible solution: https://github.com/argoproj/argo-cd/pull/7962

yndo97 commented 2 years ago

It would be great! Since sometimes it's pretty hard to read logs

wips commented 2 years ago

yes, please!

atschabu commented 3 months ago

alternatively or additionally, would be nice to print only certain fields instead of pretty print. Often all I care about is msg and level. Workaround is of course using CLI, would be nice, to have a toggle to parse JSON and provide a list of json paths to output