making logstash elastic search backend dynamic