We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I follow logs of a Kubernetes pod. Those logs are in jsonl format (https://jsonlines.org/), where each line is a valid and complete JSON entry.
jsonl
I see jsonl support is added here: #2539. However, it only uses jsonl format if a file name ends with .jsonl. In my case, I use a pipe like
.jsonl
kubectl logs -n my-pod --follow | bat --paging=never -l jsonl
which doesn't work: [bat error]: unknown syntax: 'jsonl'
[bat error]: unknown syntax: 'jsonl'
Is it possible to add a separate language entry for jsonl?
The text was updated successfully, but these errors were encountered:
Currently the .jsonl files are mapped to the JSON syntax so you should be able to just use -l json.
-l json
Sorry, something went wrong.
But in case of a pipe, the tool won't understand that the input is jsonl and not json, hence not doing the syntax highlighting properly.
json
No branches or pull requests
I follow logs of a Kubernetes pod. Those logs are in
jsonl
format (https://jsonlines.org/), where each line is a valid and complete JSON entry.I see
jsonl
support is added here: #2539. However, it only usesjsonl
format if a file name ends with.jsonl
. In my case, I use a pipe likekubectl logs -n my-pod --follow | bat --paging=never -l jsonl
which doesn't work:
[bat error]: unknown syntax: 'jsonl'
Is it possible to add a separate language entry for
jsonl
?The text was updated successfully, but these errors were encountered: