Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.

Log Alerting pipeline status

Pipe logs to Mattermost (or Slack) webhooks

Requirements

  • Go 1.8.3

Installation

  1. git clone https://git.ethitter.com/debian/eth-log-alerting.git /usr/local/bin/eth-log-alerting
  2. cd /usr/local/bin/eth-log-alerting
  3. go get github.com/ashwanthkumar/slack-go-webhook
  4. go get github.com/asaskevich/govalidator
  5. go get github.com/hpcloud/tail
  6. go build eth-log-alerting.go
  7. cp /usr/local/bin/eth-log-alerting/init.sh /etc/init.d/eth-log-alerting
  8. chmod +x /etc/init.d/eth-log-alerting
  9. cp /usr/local/bin/eth-log-alerting/config-sample.json /usr/local/bin/eth-log-alerting/config.json
  10. Edit /usr/local/bin/eth-log-alerting/config.json
  11. If using a different path for your binary or config file, or if running as other than root, override the daemon defaults:
    1. cp /usr/local/bin/eth-log-alerting/defaults /etc/default/eth-log-alerting
    2. Edit /etc/default/eth-log-alerting
  12. update-rc.d eth-log-alerting defaults
  13. /etc/init.d/eth-log-alerting start