Skip to content
Snippets Groups Projects

Log Alerting

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 build eth-log-alerting.go
  4. cp /usr/local/bin/eth-log-alerting/init.sh /etc/init.d/eth-log-alerting
  5. chmod +x /etc/init.d/eth-log-alerting
  6. cp /usr/local/bin/eth-log-alerting/config-sample.json /usr/local/bin/eth-log-alerting/config.json
  7. Edit /usr/local/bin/eth-log-alerting/config.json
  8. cp /usr/local/bin/eth-log-alerting/defaults /etc/default/eth_log_alerting
  9. Edit /etc/default/eth_log_alerting
  10. update-rc.d eth-log-alerting defaults
  11. /etc/init.d/eth-log-alerting start