logviewer
A simple, brute-force, grep-based log viewer (a web application) for
centralized syslog log archives that are not too large. Not as fancy
as a full-blown ELK stack, but it's trivial to deploy (a single static
binary), uses a tiny amount of resources, and it's still reasonably
fast.
The program can only perform simple string matching (no regular
expressions, no fancy boolean logic).
It expects to find logs on the local filesystem split by host and
program name. These (host and program) are by consequence the only
metadata fields that you can use to limit your query, along with a
time range. You can rotate logs as often as you want, the program will
automatically detect their times and include only the files relevant
to the query.
Building from source
To build the program, simply run:
$ go get git.autistici.org/ale/logviewer
This should install the logviewer executable in $GOPATH/bin
.
If you want to modify the static contents (Javascript etc.), you will
need the go-bindata package as well:
$ go get github.com/jteeuwen/go-bindata/...
Then, after every change, regenerate the bindata.go
file with:
$ go generate
and rebuild the executable.