Closed awyrough closed 9 years ago
@awyrough this is great. Thanks for the help.
Also, there are a few ES related issues that I haven't been able to reproduce/resolve. One potential issue to look out for is the host
attribute in the config for an external server not surviving a container restart. I haven't been able to reproduce it, but there have been a few reports.
Thank you! this repo is fantastic.
I'll keep my eye out for any other issues and let you know.
To use an external ElasticSearch service,
elasticsearch.sh
looks for declaredES_HOST
andES_PORT
variables or falls back on defaults if not defined.The Makefile declares these variables as
ES_SERVICE_PORT
andES_SERVICE_HOST
, so amake
ormake run
will not set the variables that theelasticsearch.sh
config helper is looking for.To demonstrate: set
ES_SERVICE_PORT
andES_SERVICE_HOST
in the Makefile, build and run, and then checkout the resultinglogstash.conf
file in the container. It will always show:This PR updates the Makefile to use
ES_HOST
andES_PORT
instead.Additionally, the README demonstrates the correct
docker run
command to run logstash with an external ES server by declaring theES_HOST
andES_PORT
variables, but doesn't open up theES_PORT
as well.This PR updates the README to expose
ES_PORT
.