pblittle / docker-logstash

Docker image for Logstash 1.4
https://hub.docker.com/r/pblittle/docker-logstash
MIT License
236 stars 90 forks source link

/opt/logstash/conf.d issues #62

Closed bjblazko closed 9 years ago

bjblazko commented 9 years ago

Hello,

as noted in the README, I used /opt/logstash.conf via Docker Volume. Now, with release 0.11.x I try to use /opt/logstash/conf.d but the container immediately exits:

[me@sys]$ docker ps -a
CONTAINER ID        IMAGE                             COMMAND             CREATED              STATUS                          PORTS               NAMES
6f80bf7ff9b8        pblittle/docker-logstash:latest   "/app/bin/boot"     About a minute ago   Exited (2) About a minute ago                       ELK

I am starting these ways:

[me@sys]$ docker run -d \
--name "ELK" -p 9200:9200 -p 9292:9292 \
-v "/some/logstash.conf:/opt/logstash/conf.d" \
pblittle/docker-logstash

or

[me@sys]$ docker run -d \
--name "ELK" -p 9200:9200 -p 9292:9292 \
-v "/some/logstash.conf:/opt/logstash/conf.d/my.conf" \
pblittle/docker-logstash

Am not sure if I am using it wrong, but with 0.10x using this way it worked:

[me@sys]$ docker run -d \
--name "ELK" -p 9200:9200 -p 9292:9292 \
-v "/some/logstash.conf:/opt/logstash.conf" \
pblittle/docker-logstash

Thanks for your great work!

Cheers, Timo

pblittle commented 9 years ago

@bjblazko, I planned on getting back to you over the weekend, but I lost track of time. Are you still working through this?

pblittle commented 9 years ago

Closing due to inactivity. @bjblazko please reopen if I can do anything to help.

PavelVanecek commented 9 years ago

I believe I saw the same behaviour. I'm not sure what exactly is the issue, but for me it worked to link a directory, not just single file:

$ mkdir conf.d
$ mv logstash.conf conf.d
$ docker run -d \
--name "ELK" -p 9200:9200 -p 9292:9292 \
-v /some/path/conf.d:/opt/logstash/conf.d" \
pblittle/docker-logstash

@bjblazko please confirm