Hi,
I have a logstash instance with multiple hosts output. According to the documentation, logstash should load balance across the hosts specified. However, I am receiving the logs on both of the elasticsearch instance.
Am I doing something wrong and how should I be configuring it? Below is a sample of my configuration. Thanks in advance.
I'm not sure if this is the correct approach but I configured it to be two single-node cluster so as to see which elasticsearch node will receive the logs.
Sorry for the late reply. I have changed my configuration file and have noticed that the output now only goes to one instance at a time. I was just wondering if this is just a coincidence or does the "start_position" in the input plugin affects this?
i.e. I changed start_position from "beginning" to "end".
Also, may I ask how the load balancing is done? E.g. is it round robin or least used?
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.