The documentation for writing a format file is here -- 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/f...