Macklog

Build Status

Code Climate

mackerelのログ監視プラグインです。 指定したファイルに指定したワードが出力された場合、Criticalアラートを出力します。

Installation

gem 'macklog'

Usage

mackerel-agent.conf

[plugin.checks.http_fatal_error]
command = "macklog -f /var/log/httpd/error.log -w fatal -i"

Contributing

  1. Fork it ( https://github.com/[my-github-username]/macklog/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request