Skip to content

Using "converter" to preprocess JSON -> JSON logs #1226

Answered by tstack
ostrolucky asked this question in Q&A
Discussion options

You must be logged in to vote

First, the "size" property should be in the "header" and not the "expr" object. You can pass -W to lnav to get a warning.

I changed the converter SQL expression so it would match the dev.log.bak2.json file you sent earlier and it seemed to "work". As in, lnav complains that it couldn't find the test.sh converter script. The expression looked like the following after my change:

"newrelic": "decode(:header, 'hex') LIKE '%\"context\"%'"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ostrolucky
Comment options

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