# Logstash Kafka input, set interval/frequency

**URL:** <https://discuss.elastic.co/t/logstash-kafka-input-set-interval-frequency/86395>\
**Category:** Logstash\
**Created:** [May 19, 2017, 9:37am UTC](https://discuss.elastic.co/t/logstash-kafka-input-set-interval-frequency/86395 "2017-05-19T09:37:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkaathi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bkaathi/32/18353_2.png) [@bkaathi](https://discuss.elastic.co/u/bkaathi)\
**Post date:** [May 19, 2017, 9:37am UTC](https://discuss.elastic.co/t/logstash-kafka-input-set-interval-frequency/86395/1 "2017-05-19T09:37:34Z")

</div>

My setup is like

FileBeat --\> Kafka --\> Logstash --\> Syslog Server

Q: How to limit/interval frequency in input or output of Logstash.

I'm using Logstash here to format the event logs to be sent to Syslog server. The problem here is Filebeat is sending high events/sec to Kafka and when I send those to Syslog server, it is unable to handle the load. Is there a way to limit the Events/sec in either input plugin or output plugin of Logstash?

---

<div class="post-metadata">

**Author:** ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)\
**Post date:** [May 19, 2017, 10:10am UTC](https://discuss.elastic.co/t/logstash-kafka-input-set-interval-frequency/86395/2 "2017-05-19T10:10:13Z")

</div>

Look at the throttle filter. It will simply add a sleep delay, alternatively you could set the workers to 1 thread and a small batch size e.g. 10.

Its not often we get requests to slow Logstash down 😀

---

<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:** [June 16, 2017, 10:11am UTC](https://discuss.elastic.co/t/logstash-kafka-input-set-interval-frequency/86395/3 "2017-06-16T10:11:04Z")

</div>

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