# Logstash to Master Node or Hot Node?

**URL:** <https://discuss.elastic.co/t/logstash-to-master-node-or-hot-node/200868>\
**Category:** Elasticsearch\
**Created:** [September 24, 2019, 12:43pm UTC](https://discuss.elastic.co/t/logstash-to-master-node-or-hot-node/200868 "2019-09-24T12:43:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wilks](https://avatars.discourse-cdn.com/v4/letter/w/f475e1/32.png) [@Wilks](https://discuss.elastic.co/u/Wilks)\
**Post date:** [September 24, 2019, 12:43pm UTC](https://discuss.elastic.co/t/logstash-to-master-node-or-hot-node/200868/1 "2019-09-24T12:43:18Z")

</div>

Hi,  
I need some clarification in the Master, Hot Node, Warm Node design  
I have setup a working cluster with a dedicated master Node thats not set to ingest any data. In my design I have a Hot-Node1 and Hot-Node2 and a Warm-Node that is configured to move the data off the hot nodes via ILM. My question is where is Logstash supposed to send the logs too? I want to have redundancy so if the Hot-Node1 where to drop then I still have logs going to Hot-Node2. Do I configure log stash to send to the Mater and let it decide even though it's just a dedicated master node and not configured to ingest any data? or do I send it to the Hot-Node1 and Hot-Node2?

## Master Config

cluster.name: logging-test  
Use a descriptive name for the node:  
node.name: master  
node.master: true  
node.voting\_only: false  
node.ingest: false  
node.ml: false  
cluster.remote.connect: false

## HOT-NODE1

luster.name: logging-test  
node.name: hot-node  
node.master: false  
node.data: true  
node.attr.box\_type: hot

## HOT-NODE2

cluster.name: logging-test  
node.name: hot-node2  
node.master: false  
node.data: true  
node.attr.box\_type: hot

## Logstash

output{  
if "TEST" in [tags] {  
elasticsearch { hosts =\> ["Hot-Node"]  
manage\_template =\> false  
index =\> "logstash-%{+YYYY.MM.dd}"}  
}  
#stdout { codec =\> rubydebug }  
}

Thanks

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [September 24, 2019, 12:46pm UTC](https://discuss.elastic.co/t/logstash-to-master-node-or-hot-node/200868/2 "2019-09-24T12:46:46Z")

</div>

> [@Wilks](#):
>
> Do I configure log stash to send to the Mater and let it decide even though it's just a dedicated master node

No, you should not send any indexing traffic to a dedicated master node. Send it to the data nodes.

> [@Wilks](#):
>
> I want to have redundancy

Then you need three master-eligible nodes. You currently only have one, so if this node fails then your cluster will stop working.

---

<div class="post-metadata">

**Author:** ![Wilks](https://avatars.discourse-cdn.com/v4/letter/w/f475e1/32.png) [@Wilks](https://discuss.elastic.co/u/Wilks)\
**Post date:** [September 24, 2019, 1:37pm UTC](https://discuss.elastic.co/t/logstash-to-master-node-or-hot-node/200868/3 "2019-09-24T13:37:49Z")

</div>

Thanks so for the logstah configuration is it as simple as this

output{  
if "TEST" in [tags] {  
elasticsearch { hosts =\> [" **Hot-Node1**", " **Hot-Node2**"]  
manage\_template =\> false  
index =\> "logstash-%{+YYYY.MM.dd}"}  
}  
#stdout { codec =\> rubydebug }  
}

Thanks

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [September 24, 2019, 2:56pm UTC](https://discuss.elastic.co/t/logstash-to-master-node-or-hot-node/200868/4 "2019-09-24T14:56:43Z")

</div>

That looks reasonable, but I don't know Logstash very well so I can't say for sure.

---

<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 22, 2019, 3:03pm UTC](https://discuss.elastic.co/t/logstash-to-master-node-or-hot-node/200868/5 "2019-10-22T15:03:09Z")

</div>

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