Which Elasticsearch node is better configured in Logstash Elasticsearch output plugin and Kibana
<p>I have ELK stack with Elasticsearch, Logstash and kibana installed on 3 different instances.</p>

<p>Now I want to make 3 node cluster of Elasticsearch.</p>

<p>I will make one node as master and 2 data nodes.</p>

<p>I want to know in logstash config</p>

<pre><code>elasticsearch {
    hosts =&gt; "http://es01:9200"
</code></pre>

<p>Which address I need to enter there master node or data node. and also if I have 3 master nodes then which address I need to write there.</p>

<p>similarly in kibana , I use</p>

<pre><code>elasticsearch.url: es01:9200
</code></pre>

<p>In cluster env which url I need to use?</p>