Log Alerting
Pipe logs to Mattermost (or Slack) webhooks
Requirements
- Go 1.8.3
Installation
git clone https://git.ethitter.com/debian/eth-log-alerting.git /usr/local/bin/eth-log-alerting
cd /usr/local/bin/eth-log-alerting
go build eth-log-alerting.go
cp /usr/local/bin/eth-log-alerting/init.sh /etc/init.d/eth-log-alerting
chmod +x /etc/init.d/eth-log-alerting
cp /usr/local/bin/eth-log-alerting/config-sample.json /usr/local/bin/eth-log-alerting/config.json
- Edit
/usr/local/bin/eth-log-alerting/config.json
cp /usr/local/bin/eth-log-alerting/defaults /etc/default/eth_log_alerting
- Edit
/etc/default/eth_log_alerting
update-rc.d eth-log-alerting defaults
/etc/init.d/eth-log-alerting start