MAJOR SECURITY UPDATE 09/27/2014 : All boxes have been fixed after the shellshocker.net nuke
- Boxes : vagrantcloud/frntn
- Issues : github/frntn
- Feedbacks : twitter/frntn
The purpose of this project is to give a quick & easy to use environment to play around with the now famous ElasticSearch - Logstash - Kibana stack a.k.a. ELK stack.
The project uses vagrant, and the preconfigured boxes are for virtualbox for now.
It builds up 2 virtual machines :
- The frntn/trusty64-elk source box has a full ELK stack.
- VM is provisioned at start up to add
collectd listener
(with encryption) - VM has host-only IP address
192.168.34.150
Kibana
is binded on port 80 throughnginx
ElasticSearch
is binded on port 9200lumberjack listener
is binded on port 5000 throughlogstash
inputcollectd listener
is binded on port 25826 throughlogstash
input
- The frntn/trusty64-wordpress contains a ready to use WORDPRESS server
- VM is provisioned at start up to install and configure
logstash-forwarder
andcollectd
- VM has host-only IP address
192.168.34.151
Wordpress
is binded on port 80 throughnginx
Logstash-forwarder
is configured to send auth and syslog events to elkserver. Easily extendable to wordpress logs and more...collectd
is configured to send system metrics to elkserver.
Pre-requisites : Vagrant and Virtualbox are installed on your host.
Clone the repo
$ git clone https://github.com/frntn/vagrant-elk-clientserver.git frntn-elk
$ cd frntn-elk
Start the VMs
$ vagrant up
Boxes are now up, you should be able to access them with your browser :
- Kibana : http://192.168.34.150/ ( the IHM you are waiting for ;) )
- Wordpress : http://192.168.34.151/
If not, you might need some extra configuration for it to work in your own environment (port forwarding, ...). I suggest you read the vagrant documentation.
Feel free to contact me (links at the beginning of this file).
Starting VM one by one
$ vagrant up elkserver
$ vagrant up elkclient
Note :
elkclient
provisioning grab certificate from server to send logs through an encrypted connection. So if you start this vm from "not created" state or force "provision" of an existing oneelkserver
should be up too.
Connecting via SSH
$ vagrant ssh elkserver
$ vagrant ssh elkclient
Add extra configuration to Logstash-fowarder to enable wordpress application logging
Hope you'll like this project as much as I add fun creating it :)