ansible-collection-elk icon indicating copy to clipboard operation
ansible-collection-elk copied to clipboard

The Elastic stack (ELK) powered by Ansible

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:

  • elasticsearch
  • kibana
  • logstash
  • beats

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