Description
mtail is a tool for extracting metrics from application logs and sending them to a time series database or calculator for alerting and dashboards. It fills the gap for applications that do not export their own internal state other than through logs. Operators can collect metrics from those applications without patching the code or writing a custom extractor for each one. Extraction is controlled by mtail programs, which define patterns to match in log lines and actions to take when they match, such as incrementing a counter. Metrics are exposed for scraping by a collector in JSON or Prometheus format over HTTP, and they can also be pushed on a schedule to a collectd, StatsD or Graphite socket. mtail is a Google open-source project, and its code and documentation are on GitHub. It suits operations engineers and site reliability teams who already run a monitoring stack and want application log data in it. The README includes a simple line-counter example to show the syntax.…
Highlights
- Extracts metrics from application logs
- Programs define log patterns and actions
- Prometheus and JSON metrics over HTTP
- Pushes to collectd, StatsD or Graphite
- No application changes needed
Ratings & Reviews
No ratings yet
Be the first to rate Mtail.
People also visit
Logdy Core
Realtime log viewer with web UI, tail -f for logs with a web interface browser
Mtail FAQ
What does mtail do?
It reads application logs, extracts metrics from them and exports those metrics to a monitoring system.
Who is it for?
Operators who run applications that only report internal state through logs, and who already use a time series database or monitoring tools.
Do I need to change my application?
No. The README says you do not need to patch applications to instrument them.
How are patterns defined?
With mtail programs, which set patterns to match in log lines and the actions to take, such as incrementing a counter.
Which export formats are supported?
JSON and Prometheus format over HTTP, and periodic pushes to collectd, StatsD or Graphite sockets.
Is it free?
Yes. It is an open-source Google project, and its code is on GitHub.
What are the best Mtail alternatives?
Popular alternatives to Mtail include Tailstream, Nerdlog and Papertrail. See all Mtail alternatives






