Open ebuildy opened 7 years ago
Hi there, Thank you for the heads up.
First of all, this feature is in fact only use in the specific scenario where you set an ELASTICSEARCH_URL. For example in the case you forward Metric beats events to Logstash but still want the Elasticsearch template to be uploaded. So I suspect most people are not using it and, if it's not working, that's probably why it stayed under the radar. On top of it, this part failing doesn't mean the container will stop running. You might not have your template uploaded but the service will start just fine after 30 failed attempts.
However, would you mind expanding your exact issue? I believe that cURL will fallback automatically on HTTP if not scheme is given. That first call being use as a simple ping anyway.
I'll be happy to publish a fix if there is any problem.
Aurélien
Curious to know if this image is working?
curl $ELASTIC_PATH
and after
curl -XPUT "http://$ELASTIC_PATH/