-
Erick Hitter authoredd3d7dc4a
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
README.md 1.17 KiB
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 get github.com/ashwanthkumar/slack-go-webhook
go get github.com/asaskevich/govalidator
go get github.com/hpcloud/tail
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
- If using a different path for your binary or config file, or if running as other than
root
, override the daemon defaults: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