I installed filebeat on VM1 and installed two nodes of elasticsearch on VM2 and VM3 which these two nodes make a cluster. Now, i want to ship logs into cluster using filebeat. in the "output.elasticsearch" part of filebeat.yml, should i write the address of both nodes or just one of them?. any comments should be appreciated. many thanks.
Many thanks.
how should i set number of primary and replica shards and what amount should they be? and should both of nodes be master node?
Also, is it needed to define node.master, node.data and node.ingest for these two nodes?
Though I am also new to elasticsearch, but i can tell to you that number of primary shards and replica shards completely depend on how much amount of data ,you have to manage.i suggest you to go through this medium post which have great insight about cluster designing.
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.