Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to ignore invalid lines #1297

Open
motine opened this issue May 22, 2023 · 0 comments
Open

Allow to ignore invalid lines #1297

motine opened this issue May 22, 2023 · 0 comments
Assignees

Comments

@motine
Copy link

motine commented May 22, 2023

I am trying to parse a log file with Miller. The logs are (mostly) in JSONL, but sometimes there are non-JSON lines in between. I would love to have an option that allows to read the JSONL file but ignoring these bad lines.

Example:

mlr --ijsonl --skip-bad-lines filter '$path =~ "abc"' some.log
@johnkerl johnkerl self-assigned this May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants