juju-lnav¶
A script to look at logs from multiple Juju units
Description¶
The juju-lnav command displays multiple log files from multiple machines in one view. It uses the lnav log file viewer, lnav.org, which needs to be installed separately. For example,
For example, after installing lnav,
sudo snap install lnav
sudo snap connect juju-lnav:juju-bin juju
running
juju-lnav octavia:/var/log/octavia/*.log{,1}
will open the current and the first rotated log files from all of the octavia units.
Likewise
juju-lnav octavia:/var/log/octavia/*.log \
nova-cloud-controller:/var/log/nova
Will load the logs on all octavia ending in .log and all files on nova-cloud-controller units.
Installation¶
The script is a shell script and requires bash.
In order to install the script do one of the following:
Clone this repository or download the script itself
Install the Debian package
Install the juju-lnav snap
Dependencies¶
The lnav log viewer needs to be installed separately either via snap
sudo snap install lnav
The snap needs to be connected to the ssh-keys interface:
sudo snap connect lnav:ssh-keys
or via package
sudo apt install lnav
For more information on how to use lnav please visit lnav.org.