I have a 3 node ES cluster setup and im trying to figure out how to make Logstash output to a cluster. I know that I can add something similar to the following:
But if I understand things correctly this will only work with a multicast configuration. My ES cluster is configured in a unicast configuration. So I would like to not send to only one host incase that host is down for some reason. How do I configure Logstash?
It's not unicast or multicast on their own. It's unicast and multicast discovery. What this means for ES is that hosts provided for unicast discovery are only helpers. Each node gets the entire cluster state after finding even one member.
That said, you shouldn't be able to even use the cluster option with the 2.x releases of Logstash in the elasticsearch output block. It defaults to use the http protocol now, which is preferred. The client will route the documents to the cluster for you.
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.