# Can you configure linger.ms in the kafka output?

**URL:** <https://discuss.elastic.co/t/can-you-configure-linger-ms-in-the-kafka-output/259501>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 23, 2020, 3:17pm UTC](https://discuss.elastic.co/t/can-you-configure-linger-ms-in-the-kafka-output/259501 "2020-12-23T15:17:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shayrybak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shayrybak/32/81320_2.png) [@shayrybak](https://discuss.elastic.co/u/shayrybak)\
**Post date:** [December 23, 2020, 3:17pm UTC](https://discuss.elastic.co/t/can-you-configure-linger-ms-in-the-kafka-output/259501/1 "2020-12-23T15:17:38Z")

</div>

Hi,

I've been running filebeat to send log files to kafka for processing, I've noticed that filebeat is lingering before sending the kafka batch for about 1 second. I'm assuming that is the default value in Sarama, however for our use case that delay is causing issues, can that be configured?

Thanks

---

<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:** [January 20, 2021, 5:17pm UTC](https://discuss.elastic.co/t/can-you-configure-linger-ms-in-the-kafka-output/259501/2 "2021-01-20T17:17:45Z")

</div>

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