# Multiple logstash instances reading from multiple kafka inputs

**URL:** <https://discuss.elastic.co/t/multiple-logstash-instances-reading-from-multiple-kafka-inputs/91646>\
**Category:** Logstash\
**Created:** [July 3, 2017, 2:07pm UTC](https://discuss.elastic.co/t/multiple-logstash-instances-reading-from-multiple-kafka-inputs/91646 "2017-07-03T14:07:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tirthankar\_Sarkar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tirthankar_sarkar/32/19725_2.png) [@Tirthankar\_Sarkar](https://discuss.elastic.co/u/Tirthankar_Sarkar)\
**Post date:** [July 3, 2017, 2:07pm UTC](https://discuss.elastic.co/t/multiple-logstash-instances-reading-from-multiple-kafka-inputs/91646/1 "2017-07-03T14:07:22Z")

</div>

Hi,  
My use case is

- I have multiple kafka topics, each with one partition. Say I have n topics, all topics names are like foo-\*(can be defined by standard regex)
- I want multiple logstash instances to consume from these n topics. Say k logstash instances consuming from n topics

What happens when i add one more topic following the same regex, do the logstash consumers balance themselves accordingly. Also if I add one more logstash instance , will that also cause re-balancing among the partitions and consumers.  
Basically what i want to know is, in case of addition of a new topic or a new logstash instance, will the load be re-distributed, or is it that the first logstash instance that was ever started will always be consuming from each partition as in my case all topics have 1 partition, and hence at a topic level the consumer:partition ratio will always be 1:1.

---

<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 31, 2017, 2:07pm UTC](https://discuss.elastic.co/t/multiple-logstash-instances-reading-from-multiple-kafka-inputs/91646/2 "2017-07-31T14:07:23Z")

</div>

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