# Persistent queues statistics

**URL:** <https://discuss.elastic.co/t/persistent-queues-statistics/90724>\
**Category:** Logstash\
**Created:** [June 24, 2017, 7:35pm UTC](https://discuss.elastic.co/t/persistent-queues-statistics/90724 "2017-06-24T19:35:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jetnet](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@jetnet](https://discuss.elastic.co/u/jetnet)\
**Post date:** [June 24, 2017, 7:35pm UTC](https://discuss.elastic.co/t/persistent-queues-statistics/90724/1 "2017-06-24T19:35:07Z")

</div>

hi All!

just a quick question regarding the statistics with persistent queues enabled: the pipeline stats command `localhost:9600/_node/stats/pipeline?pretty` shows an empty queue:

```auto
    "queue" : {
      "events" : 0,
      "type" : "persisted",
      "capacity" : {
        "page_capacity_in_bytes" : 262144000,
        "max_queue_size_in_bytes" : 1073741824,
        "max_unread_events" : 0
      },
      "data" : {
        "path" : "/var/lib/logstash/queue/main",
        "free_space_in_bytes" : 14430138368,
        "storage_type" : "ext4"
      }
    },
    "id" : "main"
  }

```

but the logstash process has been running many hours already with the disconnected ES output (the ES server is unreachable, LS receiving new messages all the time).  
I would expect to see a non-zero queue, as the messages cannot be sent out.  
Am I looking at the wrong place?  
Thanks!

---

<div class="post-metadata">

**Author:** ![jetnet](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@jetnet](https://discuss.elastic.co/u/jetnet)\
**Post date:** [June 24, 2017, 7:45pm UTC](https://discuss.elastic.co/t/persistent-queues-statistics/90724/2 "2017-06-24T19:45:44Z")

</div>

Update:  
I just restarted the LS instance (ES is still unreachable), now the stats is shown:

```auto
    "queue" : {
      "events" : 132062,
      "type" : "persisted",

```

although new messages are coming in, the counter is not increasing. So, must be something wrong with the counter...

Ok, one more update, after connecting to ES and sending out all queued messages, the stats counter still shows the previous number `"events" : 132062`

---

<div class="post-metadata">

**Author:** ![jetnet](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@jetnet](https://discuss.elastic.co/u/jetnet)\
**Post date:** [June 30, 2017, 7:32am UTC](https://discuss.elastic.co/t/persistent-queues-statistics/90724/3 "2017-06-30T07:32:23Z")

</div>

I upgraded LS to the latest version 5.4.3, the same behaviour - the event counter is not changing.  
Could someone from the ES team please confirm, if this is an issue and some one is working on it?  
Thanks a lot!

---

<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 28, 2017, 7:32am UTC](https://discuss.elastic.co/t/persistent-queues-statistics/90724/4 "2017-07-28T07:32:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jordansissel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jordansissel/32/44957_2.png) [@jordansissel](https://discuss.elastic.co/u/jordansissel)\
**Post date:** [October 6, 2017, 9:05pm UTC](https://discuss.elastic.co/t/persistent-queues-statistics/90724/5 "2017-10-06T21:05:24Z")

</div>

How are you checking if the counter is increasing? Can you show your method?
