# Logstash Persistent Queue Buffer time

**URL:** https://discuss.elastic.co/t/logstash-persistent-queue-buffer-time/260211
**Category:** Logstash
**Created:** [January 5, 2021, 1:35pm UTC](https://discuss.elastic.co/t/logstash-persistent-queue-buffer-time/260211 "2021-01-05T13:35:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ksaha](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@ksaha](https://discuss.elastic.co/u/ksaha)
#### Post date: [January 5, 2021, 1:35pm UTC](https://discuss.elastic.co/t/logstash-persistent-queue-buffer-time/260211/1 "2021-01-05T13:35:18Z")

</div>

Hi,

I am exploring on Logstash resiliency part and come to know about the logstash Persistent Queue. I am searching what is the maximum buffer time of this Persistent Queue? Our requirement is the buffer should hold the data for 24 Hrs (in worst case).

Thanks.

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [January 5, 2021, 1:49pm UTC](https://discuss.elastic.co/t/logstash-persistent-queue-buffer-time/260211/2 "2021-01-05T13:49:00Z")

</div>

There is no time configuration, the persistent queue is configured by size with `queue.max_bytes`, so if you want to keep the data for 24 hours, you need to specify a size in disk that can hold 24 hours of your events.

---

<div class="post-metadata">

### Author: ![ksaha](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@ksaha](https://discuss.elastic.co/u/ksaha)
#### Post date: [January 5, 2021, 2:29pm UTC](https://discuss.elastic.co/t/logstash-persistent-queue-buffer-time/260211/3 "2021-01-05T14:29:04Z")

</div>

Thanks @leandrojmp for your quick reply.  
So if I allocate enough memory space or specify event count it can fulfill any 'time' requirement.

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: [February 2, 2021, 2:29pm UTC](https://discuss.elastic.co/t/logstash-persistent-queue-buffer-time/260211/4 "2021-02-02T14:29:08Z")

</div>

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