3. Installing ElastAlert
ElastAlert is an alerting project for elasticsearch maintained by YELP on GitHub : https://github.com/Yelp/elastalert
Why using two alerting modules?
While Opendistro alerting plugin is similar to Watcher and can use some complicated queries, ElastAlert is a much simpler and straight forward tool, specially with its multiple supported destinations where you can send your alerts. See documentation.
ElastAlert can be useful to build a first layer of logic where you can apply some complex monitoring set of rules using Opendistro alerting plugin afterwards. The necessity of this combination is something we will be discussing in 5.Alerting with ELK and 6.Building Detection Rules.
Installing ElastAlert
Cloning from repository
As root go to /etc/
an then and clone the repository and install the required packages :
Install requirements
Modify Configuration File
Make sure the rules
folder exists in the repository
Setup ElastAlert
Check if the installation is successful then run the following command to create the elastalert
index at elasticsearch
level.
You should see the created indices in Kibana as so:
Running ElastAlert as a service
In order to start elastalert as a service please create the file below by pasting the following lines as shown in these snippets of code:
Elastalert should be up an running.
Last updated