Public Repository

Last pushed: 3 years ago
Short Description
A docker container with redis, logstash, elasticsearch, kibana
Full Description

How to run the container?

docker run -it --rm -p 9200:9200 -p 80:5601 -p 6379:6379 hex0cter/relk

How to login the container with a different shell?

docker ps
docker exec -i -t <CONTAINER ID>  bash

(Below examples assume your docker container is running at, on OS X you can get it by running boot2docker ip)

How to browse elasticsearch from a browser?

How to test redis inside of container:

[root@dee1dff5e257 /]# cd /opt/redis-3.0.2/src/
[root@dee1dff5e257 src]# ./redis-cli
(integer) 1> rpush logstash "{1}"
(integer) 1> rpush logstash "{2}"
(integer) 1> rpush logstash "{3}"
(integer) 1> rpush logstash "{4}"

How to test redis from outside of container?

$ telnet 6379
Connected to
Escape character is '^]'.
set a 1
get a

How to send data from Ruby?

require 'redis'
@redis =, port: 6379, db: 0)
@redis.rpush 'logstash', data.to_json
Docker Pull Command