A script to look at logs from multiple Juju units
The juju-lnav
command displays multiple log files from multiple machines in
one view. For example,
$ 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/*.log
Will load the logs on all octavia
and all nova-cloud-controller
units.
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
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.