Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.08 KB

usage.md

File metadata and controls

53 lines (40 loc) · 1.08 KB

Advanced usage

Hotkeys

Key Action
Enter Open log
Esc Back
F Filter
R Reverse
Ctrl+C Exit
F10 Exit
↑↓ Line Up / Down
Home Navigate to Start
End Navigate to End
? Show/Hide help

Attempting to navigate past the last line in the log will put you in follow mode.

Configuration

jlv -config example.jlv.jsonc assets/example.log
jlv -config example.jlv.jsonc < assets/example.log

Pull logs by URL

URL="https://raw.githubusercontent.com/hedhyw/json-log-viewer/main/assets/example.log"
curl "$URL" | jlv

Preview logs from string

jlv << EOF
{"time":"1970-01-01T00:00:00.00","level":"INFO","message": "day 1"}
{"time":"1970-01-02T00:00:00.00","level":"INFO","message": "day 2"}
EOF

Show kubernetes logs

kubectl logs pod/POD_NAME -f | jlv

View docker logs

docker logs -f 000000000000 2>&1 | jlv