Looking at logstash/containerpilot.json...
The onStart.sh script, when called by the onChange handler for the elasticsearch backend in logstash/containerpilot.json, doesn't appear to update logstash.conf correctly.
There are 2 reasons for this.
- I think the backend should be the elasticsearch-master service instead of the elasticsearch service.
- Once the 'elasticsearch' string has been replaced in logstash.conf with an IP address, the replacement in onStart.sh script no longer works, since it looks for the 'elasticsearch' string which is no longer there.