configure elasticsearch error watcher to send slack notifications
It is common to use ELK stack (elasticsearch, logstash, kibana) for logging. Exposing logs to everyone on team and wider organisation increases the visibility into system running in production. One can see what code paths are actually executed in production. It also makes triaging production incidents easier. What about being more proactive… Get slack notifications on errors as they happen.
One of elasticsearch plugins is Watcher. It enables alerts and notifications based on data in elasticsearch indexes.
Adding a watcher is a matter of a PUT request.
slack notification template
This is a slack notification template that will get you going.