Skip to content

A script to look at logs from multiple Juju units

License

Notifications You must be signed in to change notification settings

nicolasbock/juju-lnav

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

juju-lnav

A script to look at logs from multiple Juju units

Lint Launchpad

Description

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.

Installation

The script is a shell script and requires bash.

In order to install the script do one of the following:

  1. Clone this repository or download the script itself
  2. Install the Debian package

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.