Juju Log Viewing Trick: Easier Way to View Logs on the Commandline

I just found a nifty trick that you can do on the commandline to more easily pick through Juju logs when debugging charms, etc. This will give you a pager that you can use the arrow keys to look around in and will avoid wrapping log messages, makes it way easier to tell what is going on when you’ve got lots of long lines in the log:

juju debug-log --color | less -SR


While we’re here, termtosvg is awesome for recording your terminal. :slight_smile:


Nice! Thanks for sharing.

1 Like