It looks like logstash already handles the multiple hosts field, like this for redis: https://github.com/logstash/logstash/blob/master/lib/logstash/outputs/redis.rb#L21-L25. I will look into this.