# Can filebeat buffer data for a second?

**URL:** <https://discuss.elastic.co/t/can-filebeat-buffer-data-for-a-second/48941>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 2, 2016, 9:43am UTC](https://discuss.elastic.co/t/can-filebeat-buffer-data-for-a-second/48941 "2016-05-02T09:43:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mathias/32/23176_2.png) [@mathias](https://discuss.elastic.co/u/mathias)\
**Post date:** [May 2, 2016, 9:43am UTC](https://discuss.elastic.co/t/can-filebeat-buffer-data-for-a-second/48941/1 "2016-05-02T09:43:25Z")

</div>

Hi,

I believe my performance problems with filebeat and logstash are due too many events in short time.  
I have notice in other systems that performance is improved when I buffer my events and upload the buffer once per second.  
I wonder if this is possible with current filebeat configuration options?

Br Mathias

---

<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 2, 2016, 4:50pm UTC](https://discuss.elastic.co/t/can-filebeat-buffer-data-for-a-second/48941/2 "2016-05-02T16:50:16Z")

</div>

The spooler in filebeat buffers events for up to 2048 events by default. If buffer is full or after flush-timeout events (1 second by default), the buffered events/lines are published.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 2, 2016, 11:03pm UTC](https://discuss.elastic.co/t/can-filebeat-buffer-data-for-a-second/48941/3 "2016-05-02T23:03:18Z")

</div>

You can also send to redis in 1.X if you want to use that sort of broker.  
Kafka is coming in 5.X.

---

<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:52pm UTC](https://discuss.elastic.co/t/can-filebeat-buffer-data-for-a-second/48941/4 "2017-07-05T21:52:33Z")

</div>


