This is the source code to along with the blog article ELK-Stack-with-Vagrant-and-Ansible
- Make sure that the host has sufficient CPU & RAM to build 7 vms as this one does.
- You can adjust the memory requirements in 'inventory.yml'.
Uses the following roles:
- elastic.elasticsearch for Elasticsearch
- ashokc.logstash for Logstash
- ashokc.kibana for Kibana
- ashokc.filebeat for Filebeat
Brief usage:
vagrant up --no-provision
ansible-playbook -v -i inventory.yml elk.yml
For testing,
- Generate logs on a filebeat host, say filebeat-1
vagrant ssh filebeat-1
cd /vagrant
./files/genLogs.pl
- Open a browswer to Kibana and explore.
http://192.168.33.28:5601