# Sending Data to DataNodes / ClientNodes

**URL:** <https://discuss.elastic.co/t/sending-data-to-datanodes-clientnodes/41362>\
**Category:** Elasticsearch\
**Created:** [February 10, 2016, 9:46am UTC](https://discuss.elastic.co/t/sending-data-to-datanodes-clientnodes/41362 "2016-02-10T09:46:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rameeelastic](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@rameeelastic](https://discuss.elastic.co/u/rameeelastic)\
**Post date:** [February 10, 2016, 9:46am UTC](https://discuss.elastic.co/t/sending-data-to-datanodes-clientnodes/41362/1 "2016-02-10T09:46:04Z")

</div>

I have 4 nodes with 3 master and 3 data nodes with default shard/replica setting as below ,

1. Node1 - master =true,data=false
2. Node1 - master =true,data=true
3. Node1 - master =true,data=true
4. Node1 - master =false,data=true

I am able to send data through Logstash to one of the data node , I have couple of questions.

1. Instead of passing the data directly to datanode can i pass it to somekind of cluster aware client node that will just load balance and send it to a datanode.

2. If the above cannot be done then should i have multiple outputs in my logstash conf file for specific log type to be sent to specific datanode.

Thanks

---

<div class="post-metadata">

**Author:** ![lwintergerst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lwintergerst/32/18164_2.png) [@lwintergerst](https://discuss.elastic.co/u/lwintergerst)\
**Post date:** [February 10, 2016, 11:23am UTC](https://discuss.elastic.co/t/sending-data-to-datanodes-clientnodes/41362/2 "2016-02-10T11:23:04Z")

</div>

You can use a client node for indexing data.  
Just set master=false and data=false.

This node is aware of the cluster and will do all the loadbalancing for you! 🙂

Logstash v2.x can be configured to load balance on multiple client nodes

---

<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:** [July 5, 2017, 11:17pm UTC](https://discuss.elastic.co/t/sending-data-to-datanodes-clientnodes/41362/3 "2017-07-05T23:17:38Z")

</div>


