My requirement is to configure filebeat output as two logstash servers and I need to send logs to defined 2 servers simultaneously. It is not load balance scenario. Both logstash servers should received same data.
I do following configuration. But it doesn't gave me the expected output. Only single logstash server received the log
Hi @tharu85, do you want to achieve this scenario by only running one instance of filebeat on your log server or multiple instances of filebeat is ok for you?
Filebeat is implemented in such a way that, when user configures multiple logstash server as output in "hosts" section and load balancing is not configured then, it takes any one mentioned host randomly and send the data to that server only. If one of the mentioned server is not reachable then it takes any one server from other mentioned host as well.
Filebeat does not support to send same data to multiple logstash server simultaneously . To achieve this you have to start multiple instances of Filebeat with different logstash server configuration. This is the limitation of Filebeat output plugin
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.