# Unable to post a message to Kafka

**URL:** <https://discuss.elastic.co/t/unable-to-post-a-message-to-kafka/97684>\
**Category:** Beats\
**Created:** [August 20, 2017, 12:19pm UTC](https://discuss.elastic.co/t/unable-to-post-a-message-to-kafka/97684 "2017-08-20T12:19:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![arieltk](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@arieltk](https://discuss.elastic.co/u/arieltk)\
**Post date:** [August 20, 2017, 12:19pm UTC](https://discuss.elastic.co/t/unable-to-post-a-message-to-kafka/97684/1 "2017-08-20T12:19:03Z")

</div>

Hi all,  
I am unable to post a message to Kafka from filebeat if the topic do not already exists in Kafka. The error I see is "WARN kafka message: client/metadata found some partitions to be leaderless".  
I am not able to define upfront the topic, and I want to create them with the first message sent. Any way to enable that?

Thanks

---

<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:** [August 20, 2017, 5:07pm UTC](https://discuss.elastic.co/t/unable-to-post-a-message-to-kafka/97684/2 "2017-08-20T17:07:24Z")

</div>

This is a setting in the kafka server configuration file. By default dynamic topic creation might actually be enabled.

---

<div class="post-metadata">

**Author:** ![arieltk](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@arieltk](https://discuss.elastic.co/u/arieltk)\
**Post date:** [August 21, 2017, 12:08pm UTC](https://discuss.elastic.co/t/unable-to-post-a-message-to-kafka/97684/3 "2017-08-21T12:08:22Z")

</div>

Tx. Will check

---

<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:** [September 10, 2017, 12:19pm UTC](https://discuss.elastic.co/t/unable-to-post-a-message-to-kafka/97684/4 "2017-09-10T12:19:10Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
