# Targeting elasticsearch

**URL:** https://discuss.elastic.co/t/targeting-elasticsearch/284684
**Category:** Elasticsearch
**Created:** [September 21, 2021, 6:40am UTC](https://discuss.elastic.co/t/targeting-elasticsearch/284684 "2021-09-21T06:40:17Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![gunlomboy](https://avatars.discourse-cdn.com/v4/letter/g/c0e974/32.png) [@gunlomboy](https://discuss.elastic.co/u/gunlomboy)
#### Post date: [September 21, 2021, 6:40am UTC](https://discuss.elastic.co/t/targeting-elasticsearch/284684/1 "2021-09-21T06:40:17Z")

</div>

Hi,

We run a small cluster, 2 x master, 4 x data, 2 x ingest in addition to a number of logstash servers. Can someone confirm that we are targeting the correct elasticsearch nodes from kibana and beats.

From kibana (elasticsearch.hosts in kibana.yml) we only target the data nodes (not master or ingest)

From the various beats agents and logstash we only target the ingest nodes.

Is that best practice, or is there a more efficient methodology?

Thanks.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [September 21, 2021, 6:47am UTC](https://discuss.elastic.co/t/targeting-elasticsearch/284684/2 "2021-09-21T06:47:38Z")

</div>

That's a pretty safe approach 🙂

---

<div class="post-metadata">

### Author: ![gunlomboy](https://avatars.discourse-cdn.com/v4/letter/g/c0e974/32.png) [@gunlomboy](https://discuss.elastic.co/u/gunlomboy)
#### Post date: [September 21, 2021, 7:10am UTC](https://discuss.elastic.co/t/targeting-elasticsearch/284684/3 "2021-09-21T07:10:59Z")

</div>

Thanks for your quick response Mark.

I assume if we were to add other types of data nodes .... data\_hot, data\_warm etc then we would add those to our elasticsearch.hosts target group in kibana.yml ?

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [September 21, 2021, 7:12am UTC](https://discuss.elastic.co/t/targeting-elasticsearch/284684/4 "2021-09-21T07:12:24Z")

</div>

Yeah, or you could use the ingest nodes, or setup (a) client node(s) for them if you want.

Also, 2 masters is not ideal (I missed that). You want 3 so that you always have a majority if one leaves.

---

<div class="post-metadata">

### Author: ![gunlomboy](https://avatars.discourse-cdn.com/v4/letter/g/c0e974/32.png) [@gunlomboy](https://discuss.elastic.co/u/gunlomboy)
#### Post date: [September 21, 2021, 7:14am UTC](https://discuss.elastic.co/t/targeting-elasticsearch/284684/5 "2021-09-21T07:14:36Z")

</div>

Understood, thanks for your help.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [October 19, 2021, 7:15am UTC](https://discuss.elastic.co/t/targeting-elasticsearch/284684/6 "2021-10-19T07:15:16Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
