# When using queue conf, Logstash hangs

**URL:** <https://discuss.elastic.co/t/when-using-queue-conf-logstash-hangs/96967>\
**Category:** Logstash\
**Created:** [August 14, 2017, 12:53pm UTC](https://discuss.elastic.co/t/when-using-queue-conf-logstash-hangs/96967 "2017-08-14T12:53:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frederico\_Ferreira](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frederico_ferreira/32/42268_2.png) [@Frederico\_Ferreira](https://discuss.elastic.co/u/Frederico_Ferreira)\
**Post date:** [August 14, 2017, 12:53pm UTC](https://discuss.elastic.co/t/when-using-queue-conf-logstash-hangs/96967/1 "2017-08-14T12:53:28Z")

</div>

Hello,

i'm setting up logstash and want to use the queue configuration.  
I'm using the http input plugin and, everytime that i setup the queue (persisted) configuration, when i use curl to test it, it hangs, like, forever. Once i left it untouched for more then 5 minutes and it kept hanged.

Is it normal or am i missing some conf? It kind of works, the json that i'm trying to input into Elasticsearch gets there but my command line hangs. I'm afraid that the applications that send data through Logstash will hang too.

This is how i'm using curl:

```auto
curl -H "content-type: application/json" -u ####:@@@@ -XPOST "http://localhost:8200/" -d '{"test":1}'

```

logstash.yml

```auto
http.host: "127.0.0.1"
queue.type: persisted
queue.max_bytes: 100mb
path.queue: /usr/share/logstash/queue
path.config: /usr/share/logstash/pipeline

```

My input pipeline

```auto
input {
  http {
    port => 8200
    codec => "json"
    password => "@@@@@"
    user => "####"
  }
}

```

Oh, i'm sorry, i'm using Docker.  
This is my compose conf:

```auto
version: '2'
services:
  logstash:
    build:
      context: ./tmp
      dockerfile: Dockerfile
    volumes:
      - /opt/logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml
      - /opt/logstash/pipeline/:/usr/share/logstash/pipeline/
      - /opt/logstash/queue/:/usr/share/logstash/queue/
    network_mode: "host"

```

---

<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:** [September 11, 2017, 12:53pm UTC](https://discuss.elastic.co/t/when-using-queue-conf-logstash-hangs/96967/2 "2017-09-11T12:53:32Z")

</div>

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