# Logstash takes more space than allocated for persistance queue

**URL:** <https://discuss.elastic.co/t/logstash-takes-more-space-than-allocated-for-persistance-queue/183460>\
**Category:** Logstash\
**Created:** [May 30, 2019, 4:48am UTC](https://discuss.elastic.co/t/logstash-takes-more-space-than-allocated-for-persistance-queue/183460 "2019-05-30T04:48:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nishan256](https://avatars.discourse-cdn.com/v4/letter/n/e47c2d/32.png) [@nishan256](https://discuss.elastic.co/u/nishan256)\
**Post date:** [May 30, 2019, 4:48am UTC](https://discuss.elastic.co/t/logstash-takes-more-space-than-allocated-for-persistance-queue/183460/1 "2019-05-30T04:48:57Z")

</div>

My logstash configuration just takes inputs from filebeat and sends to a http server using http output pluging. To learn about behaviour of persistance queues, I just started filebeat and logstash but not http server. So logstash fill store some events in persistance queue and block filebeat to control backpreisure. I have allocated size of persistance queue as 2mb and made 1mb as page size. This is my logstash.yml file.

```
pipeline.batch.size: 5
pipeline.batch.delay: 500
path.queue: /home/nishan/Documents/data_files
queue.type: persisted
path.config: "/home/nishan/Documents/logstash-config/to_spring_server.conf"
queue.page_capacity: 1mb
queue.max_bytes: 2mb

```

When I examine the data files created by logstash (which is persistance queue data), It looks like this,  
 ![logstashData](https://us1.discourse-cdn.com/elastic/original/3X/0/2/02b00541eaf9cccecb67106d04b526a245752423.png)  
According to this, logstash took 3mb for persistance queue. But I allocated only 2mb. What could be the reason for this?

I use logstash and filebeat version 6.7

---

<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 27, 2019, 4:49am UTC](https://discuss.elastic.co/t/logstash-takes-more-space-than-allocated-for-persistance-queue/183460/2 "2019-06-27T04:49:08Z")

</div>

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