# Multiple kafka clusters?

**URL:** <https://discuss.elastic.co/t/multiple-kafka-clusters/150626>\
**Category:** Logstash\
**Created:** [October 2, 2018, 12:57am UTC](https://discuss.elastic.co/t/multiple-kafka-clusters/150626 "2018-10-02T00:57:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bernie\_Hsiung](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@Bernie\_Hsiung](https://discuss.elastic.co/u/Bernie_Hsiung)\
**Post date:** [October 2, 2018, 12:57am UTC](https://discuss.elastic.co/t/multiple-kafka-clusters/150626/1 "2018-10-02T00:57:12Z")

</div>

Is it possible to have a single logstash instance listen to multiple kafka clusters?

I'm uncertain if:

input {  
kafka {  
bootstrap\_servers =\> "kafka\_cluster\_A-01:9092,kafka\_cluster\_A-02:9092"  
}  
}

input {  
kafka {  
bootstrap\_servers =\> "kafka\_cluster\_B-01:9092,kafka\_cluster\_B-02:9092"  
}  
}

or

input {  
kafka {  
bootstrap\_servers =\> "kafka\_cluster\_A-01:9092,kafka\_cluster\_A-02:9092"  
}  
kafka {  
bootstrap\_servers =\> "kafka\_cluster\_B-01:9092,kafka\_cluster\_B-02:9092"  
}  
}

reads from multiple clusters. Do either of these configurations do what I want? Or do I need to start a separate logstash instance for each kafka cluster? (I suppose another possibility would be to aggregate multiple kafka topics onto a single central Kafka cluster which logstash reads from, but that's outside logstash configuration)

---

<div class="post-metadata">

**Author:** ![Bernie\_Hsiung](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@Bernie\_Hsiung](https://discuss.elastic.co/u/Bernie_Hsiung)\
**Post date:** [October 4, 2018, 6:03pm UTC](https://discuss.elastic.co/t/multiple-kafka-clusters/150626/2 "2018-10-04T18:03:54Z")

</div>

Okay, I figured out that what I want to do is best implemented through logstash pipelines.

---

<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 1, 2018, 6:03pm UTC](https://discuss.elastic.co/t/multiple-kafka-clusters/150626/3 "2018-11-01T18:03:56Z")

</div>

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