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:
curl -H "content-type: application/json" -u ####:@@@@ -XPOST "http://localhost:8200/" -d '{"test":1}'
logstash.yml
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
input {
http {
port => 8200
codec => "json"
password => "@@@@@"
user => "####"
}
}
Oh, i'm sorry, i'm using Docker.
This is my compose conf:
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"