Gustu / elk-java-error-watcher

Error watcher which sends alerts to Slack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ELK Java Error Watcher

Java error watcher which sends alerts to Slack.

alt text

Watcher is using ELK stack to read and structure logs.

Based on Docker ELK repo

Usage

  1. Copy .env files using command: make build
  2. Set SLACK_INCOMING_WEBHOOK_URL variable in watcher/.env. How to get the url?
  3. Set logs dir in the main .env
  4. Run Docker containers: make run-all

Development

  1. make build
  2. make run-docker
  3. make run-watcher

Note

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.

About

Error watcher which sends alerts to Slack

License:MIT License


Languages

Language:JavaScript 67.1%Language:Shell 16.4%Language:Go 8.7%Language:Makefile 7.8%