# Filebeat Input X kafka topics

**URL:** <https://discuss.elastic.co/t/filebeat-input-x-kafka-topics/329950>\
**Category:** Elasticsearch\
**Created:** [April 13, 2023, 8:19pm UTC](https://discuss.elastic.co/t/filebeat-input-x-kafka-topics/329950 "2023-04-13T20:19:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luizsouzagarcia](https://avatars.discourse-cdn.com/v4/letter/l/57b2e6/32.png) [@luizsouzagarcia](https://discuss.elastic.co/u/luizsouzagarcia)\
**Post date:** [April 13, 2023, 8:19pm UTC](https://discuss.elastic.co/t/filebeat-input-x-kafka-topics/329950/1 "2023-04-13T20:19:12Z")

</div>

Is it possible to consume all topics of a kafka cluster through filebeat input?  
ex:

- type: kafka  
hosts:  
- ${KAFKA\_BROKERCONNECT}  
topics: ["\*"]. --------\> It doesn't work, I've tried several regex =/  
group\_id: "kafka-consumer-filebeat"  
ssl.enabled: yes  
username:   
password:

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [April 13, 2023, 9:49pm UTC](https://discuss.elastic.co/t/filebeat-input-x-kafka-topics/329950/2 "2023-04-13T21:49:21Z")

</div>

It doesn't seem to be possible, the documentation doesn't mention it and looking at the [code](https://github.com/elastic/beats/tree/main/filebeat/input/kafka) it expects an array of topics.

You will need to specify each topic or use Logstash, where you can specify a topic pattern.

---

<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:** [May 11, 2023, 9:49pm UTC](https://discuss.elastic.co/t/filebeat-input-x-kafka-topics/329950/3 "2023-05-11T21:49:37Z")

</div>

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