garutilorenzo / ansible-collection-elk

The Elastic stack (ELK) powered by Ansible
https://garutilorenzo.github.io/ansible-collection-elk/
GNU General Public License v3.0
50 stars 23 forks source link
ansible ansible-collection ansible-role beats elasticsearch elk elk-stack filebeat heartbeat kibana logstash metricbeat

GitHub issues GitHub GitHub forks GitHub stars

elk-logo

Install and configure the ELK stack

Install and configure the ELK stack:

Elastic Beats:

Requirements

Install ansible, ipaddr and netaddr:

pip install -r requirements.txt

Roles documentation

You can refer to the README.md file in each role directory:

you can also explore all roles variables here

Using this collection

Install from GitHub

ansible-galaxy collection install git+https://github.com/garutilorenzo/ansible-collection-elk

Examples

How to use this Ansible collection

Vagrant

To test this collection you can use Vagrant and Virtualbox to bring up a example infrastructure. Once you have downloaded this repo use Vagrant to start the virtual machines:

vagrant up

In the Vagrantfile you can inject your public ssh key directly in the authorized_keys of the vagrant user. You have to change the CHANGE_ME placeholder in the Vagrantfile. You can also adjust the number of the vm deployed by changing the NNODES variable (Default: 6)

Tutorial

Full tutorial available here

TODO