eth-log-alerting

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2018 License: GPL-3.0 Imports: 13 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL