So i was wondering on which node should i configure my fluentd to send data ? For sample test, i tried sending data from logstash to one of the nodes on 9200 but it doesn't seem to work.
Also, is the above configuration proper one ? I just need proper replication so if master goes down, the other machine can take it's place.
So i was wondering on which node should i configure my fluentd to send data ?
Either one. It doesn't matter. If possible, configure the client (fluentd in this case) to know about all cluster nodes so that it can try to connect to all of them. Otherwise if you hardcode to a single hostname you have a problem if that node goes down. Alternatively, use HAproxy or similar as a frontend.
For sample test, i tried sending data from logstash to one of the nodes on 9200 but it doesn't seem to work.
Well, it should work but without further details it's impossible to tell. What's in the Logstash logs?
Also, is the above configuration proper one ? I just need proper replication so if master goes down, the other machine can take it's place.
You have one replica of each shard so you can handle a single node being down.
I tried running logstash in other 2 cluster nodes and i don't seem to get any errors in logstash.log , however when i open kibana, i can't find any data either.
Yes, but you're not configuring Logstash to connect to that cluster. Use the cluster option, and since you've disabled multicast you have to set the host to point to least one of the cluster nodes.
Awesome. It's working now. I've also pointed my fluentd which is running on the client side to point to one of the IP's in the cluster and Elastic Search seems to be receiving logs.
I've also set : discovery.zen.minimum_master_nodes = 2
Is it recommended to use HA Proxy or i can maybe tell fluentd in someway of sending logs to 1 server in cluster and if it goes down ( not reachable ) it should send to the other server IP.
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.