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

how do I mount the embedded elastic search volume in the host system? #28

Closed cultofmetatron closed 10 years ago

cultofmetatron commented 10 years ago

I want to be able to persist the container and store backups of the data. Where does loggerstass's embedded elastic search store the data so that I can either copy it for backups?

pblittle commented 10 years ago

@cultofmetatron, I don't use the embedded elasticsearch for anything other than testing, so I don't have much experience trying to persist the data.

Having said that, I'm fairly certain the embedded elasticsearch uses the default elasticsearch directory layout.

You should be able to set elasticsearch config values using the LS_JAVA_OPTS environment variable. From there, bin/logstash should pass LS_JAVA_OPTS to the embedded elasticsearch java environment.

For example, LS_JAVA_OPTS="$LS_JAVA_OPTS -Des.path.home=/opt/elasticsearch. The log directory path is relative to home set above, {path.home}/logs.

I hope this helps.

pblittle commented 10 years ago

Closing due to inactivity. Please reopen this issue if the problem persists.