I have to collect logs from around 20 servers(micro services are running there ), I have 3 elasticserach hosts, which are running in cluster formation. (2 masters and 1 data ). now when i trying to forward logs from logstatsh I do like below.
I have 3 elasticserach hosts, which are running in cluster formation. (2 masters and 1 data )
Off topic, but that doesn't sound like a good idea.
but by doing above , i am only forwarding to one host, how do I forward the logs to cluster?
The hosts option is an array so you can list multiple URLs there. You can also enable the sniffing option so that Logstash asks the cluster which nodes are available. That way Logstash will loadbalance requests to all currently eligible cluster nodes.
It would be really helpfull if there are some guidelines on how to configure? Is there a document or something? Please help. I tried to find but no luck
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.