Image for post
Image for post

ELK Adventures Part 1

I am kicking of a small ELK (ElasticSearch-Logstash-Kibana) project and use vagrant for easy development. I will spin up a 3-node cluster with small package repository server that uses Aptly.

Configuration

For the configuration, I just create a hosts files (./config/hosts) to define my environment:

172.16.0.50 aptly-01.dev 
172.16.0.51 elk-01.dev primary
172.16.0.52 elk-02.dev
172.16.0.53 elk-03.dev

Vagrantfile

I will have a Vagrantfile that will read in the hosts file and create the systems.

Image for post
Image for post
Chef Bento Box

Start Environment

And with this, we’re off, all I do is vagrant up, wait for downloading the image, and then run vagrant status to see the systems up and running:

$ vagrant up
$ vagrant status
aptly-01.dev running (virtualbox)
elk-01.dev running (virtualbox)
elk-02.dev running (virtualbox)
elk-03.dev running (virtualbox)
This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific VM, run `vagrant status NAME`.
Image for post
Image for post
Virtualbox 5.2.x running on Zorin OS (Linux) on Asus Zenbook

Written by

Linux NinjaPants Automation Engineering Mutant — exploring DevOps, Kubernetes, CNI, IAC

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store