Please consult the documentation of your version of Logstash. You'll see that there is no hosts option (but there is a host option that works almost the same).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.