# Logstash should point to Master or Slave?

**URL:** <https://discuss.elastic.co/t/logstash-should-point-to-master-or-slave/153522>\
**Category:** Logstash\
**Created:** [October 23, 2018, 5:45am UTC](https://discuss.elastic.co/t/logstash-should-point-to-master-or-slave/153522 "2018-10-23T05:45:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jibsonline](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jibsonline/32/63154_2.png) [@jibsonline](https://discuss.elastic.co/u/jibsonline)\
**Post date:** [October 23, 2018, 5:45am UTC](https://discuss.elastic.co/t/logstash-should-point-to-master-or-slave/153522/1 "2018-10-23T05:45:01Z")

</div>

ES:6.3.2

Below is my Master Conf

```
bootstrap.memory_lock: true

cluster.name: pm_production_elasticsearch

discovery.zen.minimum_master_nodes: 2

http.port: 9200

network.host: 0.0.0.0

node.data: false

node.master: true

transport.host: master1

transport.tcp.port: 9300

xpack.security.enabled: false

node.name: master1

discovery.zen.ping.unicast.hosts:

- master1:9300

- master2:9300

- master3:9300

```

Client Configs

```
bootstrap.memory_lock: true

cluster.name: pm_production_elasticsearch

discovery.zen.minimum_master_nodes: 2

http.port: 9200

network.host: 0.0.0.0

node.data: true

node.master: false

path.data: /data/elasticsearch, /data1/elasticsearch

transport.host: node_ip

transport.tcp.port: 9300

xpack.security.enabled: false

node.name: node_ip

discovery.zen.ping.unicast.hosts:

- master1:9300

- master2:9300

- master3:9300

```

I have logstash receiving input from filebeat and pushing to ES

What I want to know is can i push the output to the slave nodes or only the master nodes?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 23, 2018, 8:00am UTC](https://discuss.elastic.co/t/logstash-should-point-to-master-or-slave/153522/2 "2018-10-23T08:00:42Z")

</div>

First, there are no slave nodes in Elasticsearch. There is a single active master node doing management work. This is also the reason, that you should point logstash to a so called data node or coordinating only node, that is not doing any master node work.

See [https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-hosts](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-hosts)

---

<div class="post-metadata">

**Author:** ![jibsonline](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jibsonline/32/63154_2.png) [@jibsonline](https://discuss.elastic.co/u/jibsonline)\
**Post date:** [October 23, 2018, 8:09am UTC](https://discuss.elastic.co/t/logstash-should-point-to-master-or-slave/153522/3 "2018-10-23T08:09:41Z")

</div>

@spinscale

So what is the significance of

```
node.data: false
node.master: true 

```

Is there a documention for the above parameters?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 23, 2018, 8:32am UTC](https://discuss.elastic.co/t/logstash-should-point-to-master-or-slave/153522/4 "2018-10-23T08:32:27Z")

</div>

Yes, there is. See [https://www.elastic.co/guide/en/elasticsearch/reference/6.4/modules-node.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/modules-node.html)

---

<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:** [November 20, 2018, 8:34am UTC](https://discuss.elastic.co/t/logstash-should-point-to-master-or-slave/153522/5 "2018-11-20T08:34:42Z")

</div>

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