# How to check persistent queue draining?

**URL:** <https://discuss.elastic.co/t/how-to-check-persistent-queue-draining/153794>\
**Category:** Logstash\
**Created:** [October 24, 2018, 12:24pm UTC](https://discuss.elastic.co/t/how-to-check-persistent-queue-draining/153794 "2018-10-24T12:24:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mw\_jko](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@mw\_jko](https://discuss.elastic.co/u/mw_jko)\
**Post date:** [October 24, 2018, 12:24pm UTC](https://discuss.elastic.co/t/how-to-check-persistent-queue-draining/153794/1 "2018-10-24T12:24:39Z")

</div>

Hi there,

we are (still) using ELK stack 5.4 in a very simple singlenode Docker-Compose setup with persistent queue enabled:

```auto
queue.type: persisted
path.queue: /usr/share/logstash/queue
queue.max_bytes: 5gb

```

After reading [this](https://www.elastic.co/guide/en/logstash/current/upgrading-logstash-pqs.html#upgrading-logstash-pqs) I wanted to give it a try, added the `queue.drain: true` setting to the configuration and stopped/started the logstash (docker compose) service. Then I stopped the service again (so the new draining setting should work).

When checking the filesystem I noticed the page is still there with 250MB size. Is this normal behaviour? Is there a way to check if the draining actually worked or how many elements are currently stored in the persistent queue?

Thank you!  
Jens

---

<div class="post-metadata">

**Author:** ![mw\_jko](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@mw\_jko](https://discuss.elastic.co/u/mw_jko)\
**Post date:** [November 6, 2018, 8:40am UTC](https://discuss.elastic.co/t/how-to-check-persistent-queue-draining/153794/2 "2018-11-06T08:40:36Z")

</div>

Can someone help me with this please?

---

<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:** [December 4, 2018, 8:40am UTC](https://discuss.elastic.co/t/how-to-check-persistent-queue-draining/153794/3 "2018-12-04T08:40:41Z")

</div>

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