A command-line interface log viewer
I got really sick of trying to find the things I was looking for in a big blob of unstructured text. Printing my logs out to the terminal just wasn't sufficient anymore.
Well, first and foremost it show your logs...
It can also:
- Stream logs into the viewer as they occur
- Filter to only show lines matching a given search term or regular expression
- Perform a search (from the latest logs upwards of course)
- Display logs from multiple servers side by side
- Display multiple views into the same log file
- Highlight text matching a given regular expression
The simplest method is to download a binary for your platform here: Download Binary
brew update
brew install chrispenner/tools/lumberjack
Or you can install from source:
Assuming go is installed:
$ go get github.com/chrispenner/lumberjack
$ $GOPATH/bin/lumberjack logs1 logs2Put $GOPATH/bin on your $PATH to use the lumberjack command.
<enter>: Select a log-file for the current pane<tab>: Toggle the filters/highlighters side-pane?or/: Start a searchw: Toggle text-wrapping^hand^l: Switch panes left and right respectively<up>and<down>: Scroll 1 line at a timebor^u: Scroll up half a screen^d: Scroll down half a screenG: Scroll to bottom (latest) logsn: Find next occurranceN: Find previous occurrance1-4: Display 1-4 panes respectively<shift> + 0-9: Toggle the respective filter/highlighter
<tab>: Toggle the filters/highlighters side-pane<enter>: Edit the current modifier<space>: Toggle the current modifierj: Move down one modifierk: Move up one modifier

