Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Latest commit

 

History

History
26 lines (15 loc) · 791 Bytes

README.md

File metadata and controls

26 lines (15 loc) · 791 Bytes

Ansible playbook for ElastAlert

Ansible playbook to install Docker and run Elastalert container - http://github.com/chaitanyaenr/docker-elastalert on Elasticsearch hosts.

*** Obsolete ***

Requirements

You need to have these installed on your host

  • Ansible
  • python

Add your Elasticsearch hosts

Add your elasticsearch hosts in the hosts file under [Elasticsearch] group.

Run

By default, $ ansible-playbook site.yml assumes that the config.yaml file, rules/ are at /tmp/config.yaml /tmp/rules/

Running the below command will install docker, pulls the elastalert image and run the container on the hosts mentioned in inventory file

$ ansible-playbook site.yml

You can override the variables like

$ ansible-playbook --extra-vars '{"FILES_DIR":"/tmp"}' site.yml