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

**URL:** https://discuss.elastic.co/t/in-http-input-plugin-curl-command-is-halted-when-thread-value-0-or-1-sets-in-logstash-config-file/156387
**Category:** Logstash
**Created:** [November 13, 2018, 5:41am UTC](https://discuss.elastic.co/t/in-http-input-plugin-curl-command-is-halted-when-thread-value-0-or-1-sets-in-logstash-config-file/156387 "2018-11-13T05:41:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![garima](https://avatars.discourse-cdn.com/v4/letter/g/59ef9b/32.png) [@garima](https://discuss.elastic.co/u/garima)
#### Post date: [November 13, 2018, 5:41am UTC](https://discuss.elastic.co/t/in-http-input-plugin-curl-command-is-halted-when-thread-value-0-or-1-sets-in-logstash-config-file/156387/1 "2018-11-13T05:41:15Z")

</div>

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" }'

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [November 13, 2018, 7:34am UTC](https://discuss.elastic.co/t/in-http-input-plugin-curl-command-is-halted-when-thread-value-0-or-1-sets-in-logstash-config-file/156387/2 "2018-11-13T07:34:31Z")

</div>

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.

---

<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 11, 2018, 7:34am UTC](https://discuss.elastic.co/t/in-http-input-plugin-curl-command-is-halted-when-thread-value-0-or-1-sets-in-logstash-config-file/156387/3 "2018-12-11T07:34:33Z")

</div>

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