# Can we have multiple HTTP input plugin configured into single logstash.conf file like below

**URL:** https://discuss.elastic.co/t/can-we-have-multiple-http-input-plugin-configured-into-single-logstash-conf-file-like-below/271950
**Category:** Logstash
**Created:** [May 3, 2021, 9:04am UTC](https://discuss.elastic.co/t/can-we-have-multiple-http-input-plugin-configured-into-single-logstash-conf-file-like-below/271950 "2021-05-03T09:04:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Learn\_Mulesoft\_With](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/learn_mulesoft_with/32/87561_2.png) [@Learn\_Mulesoft\_With](https://discuss.elastic.co/u/Learn_Mulesoft_With)
#### Post date: [May 3, 2021, 9:04am UTC](https://discuss.elastic.co/t/can-we-have-multiple-http-input-plugin-configured-into-single-logstash-conf-file-like-below/271950/1 "2021-05-03T09:04:26Z")

</div>

input {  
http {  
host =\> "localhost"  
port =\> "5044"  
response\_code =\> 201  
}  
http {  
host =\> "localhost"  
port =\> "5045"  
response\_code =\> 201  
}  
http {  
host =\> "localhost"  
port =\> "5046"  
response\_code =\> 201  
}  
}

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [May 3, 2021, 2:50pm UTC](https://discuss.elastic.co/t/can-we-have-multiple-http-input-plugin-configured-into-single-logstash-conf-file-like-below/271950/2 "2021-05-03T14:50:50Z")

</div>

If they are listening on different ports you can have multiple http inputs.

---

<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: [May 31, 2021, 2:51pm UTC](https://discuss.elastic.co/t/can-we-have-multiple-http-input-plugin-configured-into-single-logstash-conf-file-like-below/271950/3 "2021-05-31T14:51:13Z")

</div>

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