extract whitebox monitoring data from application logs for collection in a timeseries database
Go Yacc Makefile Emacs Lisp Other
Latest commit ae129e9 Dec 31, 2016 @jaqx0r jaqx0r committed on GitHub Merge pull request #53 from emmanuel/fix/install_gen_deps
Install goyacc in `install_gen_deps` target (fixes #51).
Permalink
Failed to load latest commit information.
emgen Address golint comments in emgen. Apr 5, 2015
examples Update apache metrics buckets Oct 14, 2016
exporter exporter: increase logging verbosity for metric pushes Nov 7, 2016
fuzz More renames missed by tests. Mar 5, 2015
metrics Creates metric storage during the code generation phase, instead of the Aug 21, 2016
mtail Switch back to upstream afero branch. Fixes #48. Nov 7, 2016
tailer Switch back to upstream afero branch. Fixes #48. Nov 7, 2016
testdata Add an unconditional jump instruction so that else blocks can be skipped Apr 29, 2016
vm Switch back to upstream afero branch. Fixes #48. Nov 7, 2016
watcher Increases the timeouts for the log_watcher_test to 1 second for each Aug 25, 2016
.gitignore Really install the deps before testing. Aug 24, 2016
.travis.yml Runs the benchmarks if applicable after generating coverage. Aug 25, 2016
CONTRIBUTING.md Rename CONTRIBUTING to get Markdown highlighting. Mar 2, 2015
LICENSE Add CONTRIBUTING and LICENSE. Mar 2, 2015
Makefile Install goyacc in install_gen_deps target (fixes #51). Dec 31, 2016
README.md Improve the installation docs. Oct 6, 2015
TODO Adds a feature TODO. Aug 26, 2016
bench_test.go Adds a comment. Aug 20, 2016
benchmark_results.csv Read up to 4K from each log. Sep 9, 2013
ex_test.go Builds benchmarks with go1.7 or above because the b.Run method only Aug 20, 2016
log_rewriter.awk Fix an output formatting bug in the rewriter script. Apr 5, 2015
main.go Add a flag to enable metric dump after oneshot mode. Jun 11, 2015
mtail-mode.el Rename from emtail to mtail, restoring harmony in the universe. May 28, 2014

README.md

mtail - extract whitebox monitoring data from application logs for collection into a timeseries database

GoDoc Build Status Coverage Status

mtail is a tool for extracting metrics from application logs to be exported into a timeseries database or timeseries calculator for alerting and dashboarding.

It aims to fill a niche between applications that do not export their own internal state, and existing monitoring systems, without patching those applications or rewriting the same framework for custom extraction glue code.

The extraction is controlled by mtail programs which define patterns and actions:

# simple line counter
counter line_count
/$/ {
  line_count++
}

Metrics are exported for scraping by a collector as JSON or Prometheus format over HTTP, or can be periodically sent to a collectd, StatsD, or Graphite collector socket.

See the Wiki for more details.

Mailing list: https://groups.google.com/forum/#!forum/mtail-users

Installation

mtail uses a Makefile. To build mtail, type make at the commandline. See the Build instructions for more details.