5 ms·
Sorry to plug lnav again, but if the data volume is not "too much"[1], the latest version of lnav has support for tailing files on remote hosts that are accessi
by tstack 5y ago
Sorry to plug lnav again, but if the data volume is not "too much"[1], the latest version of lnav has support for tailing files on remote hosts that are accessible via ssh:
https://lnav.org/2021/05/03/tailing-remote-files.html https://lnav.org/2021/05/03/tailing-remote-files.html
So, to tail "/path/to/log" on host1 and host2, you'd start lnav with:
$ lnav host1:/path/to/log host2:/path/to/log
[1] - This is the initial release of this feature, so it probably has some performance issues. I'd be interested to know if it worked or not.
- fleur-de-lotus 5y agoI tried but my timestamp is of the form %Y%m%d.%H%M%S: Do you have an option to just specify the timestamp format? If not, can you give an example of defining own format? Many thanks
- tstack 5y agoI'll add this timestamp to the set of defaults for the final v0.10.0 version later today. The documentation for the format files is here: https://docs.lnav.org/en/latest/formats.html https://docs.lnav.org/en/latest/formats.html The "timestamp-format" property in the format definition is an array of the formats to be tried beyond the builtin set. Here are some example formats written by a user: https://github.com/aspiers/lnav-formats https://github.com/aspiers/lnav-formats I think some of them define their own timestamp format.