ElastAlert daemonizing and some rules for filebeat and metricbeat
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
rules
LICENSE
README.md
elastalert.service
elastalert.yml

README.md

ElastAlert configuring

Installation

  1. Install ElastAlert into Python 2.7:
    pip install elastalert
  2. Create dirs for configs:
    mkdir -p /etc/elastalert/rules
  3. Place elastalert.yml into /etc/elastalert
  4. Place elastalert.service into /lib/systemd/system/.
  5. Create indices into ElasticSearch:
    elastalert-create-index --config /etc/elastalert/elastalert.yml
  6. Create some rules.
  7. Test rules:
    elastalert-test-rule --config /etc/elastalert/elastalert.yml /etc/elastalert/rules/*.yml
  8. Run service:
    systemctl daemon-reload                 # update configs
    systemctl enable elastalert.service     # auto run on startup
    systemctl start elastalert.service      # run
    systemctl status elastalert.service     # check status

If you're add or modify rules you don't need restart daemon. ElastAlert reread all rules on each check.

References

  1. Rules examples
  2. Documentation
  3. Daemonizing