miller
miller copied to clipboard
Allow to ignore invalid lines
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