Replies: 1 comment
-
Hmm I can't think of a great way to do that, as I just pass in the multi-line JSON string into a JSON decoder, which expects JSON. Simplest thing I can think of is to filter out non-json strings (or convert them to JSON) using something like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use
yq -jp -P
to get nice yaml logs from jsonlog lines. This works fine.But sometimes there are non-jsonlog lines:
This fails:
It would be great if yq could parse that somehow.
I looked at
yq --help
, but found nothing which seem helpful for that case.What do you think about that use-case?
Do you want to support it?
Maybe I could create a PR, but feel free to do it. I guess you are way faster than me implementing it :-)
Beta Was this translation helpful? Give feedback.
All reactions