In HTTP input plugin, curl command is halted when thread value "0 or -1" sets in logstash config file

(garima) #1

i am trying to validate the http request for thread value zero.

Execution Steps:

  1. Logstash-http.conf
    input {
    http {
    port => 8080
    threads => 0

output {
stdout { codec => rubydebug}
2. Run logstash by binary
3. Curl command to send http request
#curl -X POST 'logstash_node1:8080/index1/external/3?pretty' -H 'Content-Type: text/plain' -d '{ "message" : "HTTP POST request" }'

(Christian Dahlqvist) #2

What are you trying to achieve by setting the number of threads to a value that does not make any sense? I would recommend leaving this parameter with the default value unless you are trying to tune for performance.

(system) #3

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