logviewer

command module
v0.0.0-...-cd36e17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2019 License: GPL-3.0 Imports: 22 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL