I have 2 logstash nodes (version -8.6.2) that i want to send data to 2 elasticsearch nodes (version -8.6.2) ( a third node will be added soon to the cluster) . Do i just mention the elasticsearch nodes' in the ES output section like below , would that be enough?
Would the data be sent to both ? or since its a cluster i'd just need to send to the master and would that take care of sharding and placing data on both nodes ?
master is 10.27.101.63
currently i have both elasticsearch nodes set in [master ,data] roles
The configuration you showed will send the data to one of the nodes in the cluster, which is the correct behaviour. When you send a bulk request to one of the nodes in the cluster it will write the data across the cluster, so you should not try to send data twice. The master node role is not involved in indexing (unless mappings or other things affecting the cluster state changes) so data should be sent to any of the data nodes.
And is it load balanced automatically ? so as of now the data seems to be going the master /data node - 10.27.101.63 or would it always goto this one node all the time ?
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.