# Use Kafka input in filebeat modules

**URL:** <https://discuss.elastic.co/t/use-kafka-input-in-filebeat-modules/268693>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 29, 2021, 7:18pm UTC](https://discuss.elastic.co/t/use-kafka-input-in-filebeat-modules/268693 "2021-03-29T19:18:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeonT123](https://avatars.discourse-cdn.com/v4/letter/l/ba9def/32.png) [@LeonT123](https://discuss.elastic.co/u/LeonT123)\
**Post date:** [March 29, 2021, 7:18pm UTC](https://discuss.elastic.co/t/use-kafka-input-in-filebeat-modules/268693/1 "2021-03-29T19:18:40Z")

</div>

Hi,

Is there anyway to use Kafka input instead of file or other types (.i.e. UDP SYSLOG) in a module?

I mean consider the events are available as a Kafka topic (instead of a file). As I checked it seems only file and UDP are the options for the modules inputs.

If possible, is there any guide to how to do that?

Thanks

---

<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:** [March 29, 2021, 7:49pm UTC](https://discuss.elastic.co/t/use-kafka-input-in-filebeat-modules/268693/2 "2021-03-29T19:49:47Z")

</div>

Which version are you using? The Kafka input in filebeat is available since version 7.4.

The [documentation](https://www.elastic.co/guide/en/beats/filebeat/7.12/filebeat-input-kafka.html) explains how to configure it.

---

<div class="post-metadata">

**Author:** ![LeonT123](https://avatars.discourse-cdn.com/v4/letter/l/ba9def/32.png) [@LeonT123](https://discuss.elastic.co/u/LeonT123)\
**Post date:** [March 29, 2021, 8:22pm UTC](https://discuss.elastic.co/t/use-kafka-input-in-filebeat-modules/268693/3 "2021-03-29T20:22:18Z")

</div>

I'm using the latest version  
I know it is there but the point is in different modules like Cisco only file and UDP inputs are available.  
I'm looking for a way to replace that with kafka

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [April 8, 2021, 2:46am UTC](https://discuss.elastic.co/t/use-kafka-input-in-filebeat-modules/268693/4 "2021-04-08T02:46:14Z")

</div>

So yes and no. So u could change the input variable to kafka but no module is setup to handle the kafka config options and pass them to the kafka input. I think this would be interesting and it wouldn't be to hard to implement, just add the config options for the kafka input like with file or udp/syslog.

---

<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 6, 2021, 4:46am UTC](https://discuss.elastic.co/t/use-kafka-input-in-filebeat-modules/268693/5 "2021-05-06T04:46:44Z")

</div>

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