Java error watcher which sends alerts to Slack.
Watcher is using ELK stack to read and structure logs.
Based on Docker ELK repo
- Copy .env files using command:
make build - Set
SLACK_INCOMING_WEBHOOK_URLvariable inwatcher/.env. How to get the url? - Set logs dir in the main
.env - Run Docker containers:
make run-all
make buildmake run-dockermake run-watcher
This watcher is configured to consume Java logs with custom timestamp:
20180107 12:01:26.346 [pool-48-thread-1] DEBUG com.example.email.EmailPollingManager - Executing mail polling
To consume other pattern modify logstash/config.logstash.yml and logstash/config/patterns/time.
Modify watcher/slack.js to change Slack formatting and watcher/watcher.js to change Watcher configuration.
