# Filebeat Kafka output

**URL:** <https://discuss.elastic.co/t/filebeat-kafka-output/49950>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 12, 2016, 10:58pm UTC](https://discuss.elastic.co/t/filebeat-kafka-output/49950 "2016-05-12T22:58:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anefassa](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@anefassa](https://discuss.elastic.co/u/anefassa)\
**Post date:** [May 12, 2016, 10:58pm UTC](https://discuss.elastic.co/t/filebeat-kafka-output/49950/1 "2016-05-12T22:58:41Z")

</div>

Is it possible to specify a partition key when using filebeat to send to a Kafka topic?

---

<div class="post-metadata">

**Author:** ![treff7es1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/treff7es1/32/9708_2.png) [@treff7es1](https://discuss.elastic.co/u/treff7es1)\
**Post date:** [May 13, 2016, 9:12am UTC](https://discuss.elastic.co/t/filebeat-kafka-output/49950/2 "2016-05-13T09:12:50Z")

</div>

Based on the code it seems like you can't set it now but I think it would be easy to add this feature.

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [May 17, 2016, 10:39am UTC](https://discuss.elastic.co/t/filebeat-kafka-output/49950/3 "2016-05-17T10:39:54Z")

</div>

Right partition keys are not supported yet. For now It's blocked by some other features required to extracts/compute some hash for setting a partition. Feel free to add a [github issue](https://github.com/elastic/beats).

---

<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 5, 2017, 9:51pm UTC](https://discuss.elastic.co/t/filebeat-kafka-output/49950/4 "2017-07-05T21:51:56Z")

</div>


