5 ms·
The Logfile Navigator (https://lnav.org https://lnav.org) is a TUI for viewing log files that can be configured to process structured JSON files. It has quite
by tstack 4y ago
The Logfile Navigator (https://lnav.org https://lnav.org) is a TUI for viewing log files that can be configured to process structured JSON files. It has quite a few features, like filtering and color coding.
The documentation for writing a format file is here -- https://docs.lnav.org/en/latest/formats.html https://docs.lnav.org/en/latest/formats.html
The format file tells lnav what common fields are in the log messages and how to format them into plaintext for display. Here's an example configuration for JSON logs -- https://github.com/tstack/fullsail_lnav_config/blob/master/fullsail_log.json https://github.com/tstack/fullsail_lnav_config/blob/master/f...