Public | Automated Build

Last pushed: a year ago
Short Description
Docker with Logstash, Kibana and Elasticsearch
Full Description

Docker with Logstash, Kibana and Elasticsearch

Through this Docker we will be able to do tests without the need to install these products in our machine. I have added a Dockerfile and a logstash.conf (it is a example which I have got from Elastic).

Versions

In this Docker, we have Logstash 2.2.1, Kibana 4.4.2 and Elasticsearch 2.2.1.

Quick Start

We have to download Dockerfile and do a build in our machine with Docker.

docker build -t rdrg/docker-elk .

Having done that, we run Kibana and Elasticsearch.

docker run -d -p 9200:9200 -p 5601:5601 rdrg/docker-elk

In the case of Logstash, we have several options:

  • We can do tests to check if Logstash works.

    docker run -it --rm rdrg/docker-elk logstash -e 'input { stdin { } } output { stdout { } }'

  • We can add our Elasticsearch to send data.

    docker run -it --rm rdrg/docker-elk logstash -e 'input{stdin{}}output{elasticsearch{hosts=>["ip:port"]}stdout{}}'

  • We can add a logstash.conf (It is recommendable to use Elasticsearch's ip).

    docker run -it --rm -v "$PWD":/config-dir rdrg/docker-elk logstash -f /config-dir/logstash.conf

    You can paste the following line:

    127.0.0.1 - - [11/Dec/2013:00:01:45 -0800] "GET /xampp/status.php HTTP/1.1" 200 3891 "http://cadenza/xampp/navi.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:25.0) Gecko/20100101 Firefox/25.0"

Docker Pull Command
Owner
rdrg
Source Repository

Comments (0)