How to use environment variable for logstash output elasticsearch plugin for multiple elasticsearch hosts?

From my reading of the PR used to support this, you should be using export ES_HOSTS="host1:9200 host2:9200" and hosts => "${ES_HOSTS}".