# How to add/create clusters in logstash?

**URL:** <https://discuss.elastic.co/t/how-to-add-create-clusters-in-logstash/108318>\
**Category:** Logstash\
**Created:** [November 20, 2017, 5:45am UTC](https://discuss.elastic.co/t/how-to-add-create-clusters-in-logstash/108318 "2017-11-20T05:45:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsakpal](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@dsakpal](https://discuss.elastic.co/u/dsakpal)\
**Post date:** [November 20, 2017, 5:46am UTC](https://discuss.elastic.co/t/how-to-add-create-clusters-in-logstash/108318/1 "2017-11-20T05:46:00Z")

</div>

I want to add clustering mechanism into the logstash. Can anybody help me out in this?  
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:** [November 20, 2017, 5:59am UTC](https://discuss.elastic.co/t/how-to-add-create-clusters-in-logstash/108318/2 "2017-11-20T05:59:02Z")

</div>

Logstash does not currently cluster.

What exactly are you trying to achieve.

---

<div class="post-metadata">

**Author:** ![dsakpal](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@dsakpal](https://discuss.elastic.co/u/dsakpal)\
**Post date:** [November 20, 2017, 12:10pm UTC](https://discuss.elastic.co/t/how-to-add-create-clusters-in-logstash/108318/3 "2017-11-20T12:10:35Z")

</div>

Hello,  
Following is the deployment scenario.  
We are using ELK stack (ElasticSearch,Logstash and Kibana for UI)  
Elastic Search will be deployed on 3 nodes which form one Cluster.  
We also want to Cluster Logstash which provides Input for ES.  
Presently we are thinking of deploying 2 Logstash Instances in Cluster.  
Can you suggest how this can be achieved?  
There are 4 FileBeat instances per Logstash.  
Pl. let me know.  
Thanks in adavnce....

---

<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:** [November 20, 2017, 7:02pm UTC](https://discuss.elastic.co/t/how-to-add-create-clusters-in-logstash/108318/4 "2017-11-20T19:02:44Z")

</div>

FYI we’ve renamed ELK to the Elastic Stack, otherwise Beats and APM feel left out! 😉

Logstash is s single instance process, so you can just install it multiple times.

---

<div class="post-metadata">

**Author:** ![dsakpal](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@dsakpal](https://discuss.elastic.co/u/dsakpal)\
**Post date:** [November 21, 2017, 5:04am UTC](https://discuss.elastic.co/t/how-to-add-create-clusters-in-logstash/108318/5 "2017-11-21T05:04:05Z")

</div>

Thanks 😉

Tell me one thing if I have 8 file beat instance with me & my logstash input configuration is like,  
input {  
beats {  
host =\> host1  
port =\> port1  
}  
beats {  
host =\> host2  
port =\> port2   
}  
beats {  
host =\> host3  
port =\> port3  
}  
.......

beats {  
host =\> hostn  
port =\> portn  
}  
}

& if my logstash instance get crashed or in ideal mode then how do I recognize it? & In this process if some data lost happend then how do I track all those data?  
Is there any recovery mechanism logstash have using we identify above scenarios?

Thanks

---

<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:** [December 19, 2017, 5:04am UTC](https://discuss.elastic.co/t/how-to-add-create-clusters-in-logstash/108318/6 "2017-12-19T05:04:07Z")

</div>

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