add dynamic es endpoint to logstash config