Config logstash dynamically