# How to output to multiple http endpoints

**URL:** <https://discuss.elastic.co/t/how-to-output-to-multiple-http-endpoints/109549>\
**Category:** Logstash\
**Created:** [November 29, 2017, 9:23am UTC](https://discuss.elastic.co/t/how-to-output-to-multiple-http-endpoints/109549 "2017-11-29T09:23:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kasun\_Siyambalapitiy](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@Kasun\_Siyambalapitiy](https://discuss.elastic.co/u/Kasun_Siyambalapitiy)\
**Post date:** [November 29, 2017, 9:23am UTC](https://discuss.elastic.co/t/how-to-output-to-multiple-http-endpoints/109549/1 "2017-11-29T09:23:43Z")

</div>

Hi,  
Folllowing is the output section of my config file,

```
output {

```

if [type] == "product\_log" {  
http {  
url =\> "[https://xxxxxxxxxx.com/endpoints/nginx\_product\_receiver](https://xxxxxxxxxx.com/endpoints/nginx_product_receiver)"  
http\_method =\> "post"  
format =\> "json"  
headers =\> [  
'Authorization', 'Basic sdfdfaefdafewfdfdfa'  
]  
}  
}  
}

Now I want to send the same data to another https receiver while keeping the above as it is. In simple terms I need to publish same data to multiple http places. How do I achieve above.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 29, 2017, 9:42am UTC](https://discuss.elastic.co/t/how-to-output-to-multiple-http-endpoints/109549/2 "2017-11-29T09:42:29Z")

</div>

Just add another `http { ... }` block to your output block.

---

<div class="post-metadata">

**Author:** ![Kasun\_Siyambalapitiy](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@Kasun\_Siyambalapitiy](https://discuss.elastic.co/u/Kasun_Siyambalapitiy)\
**Post date:** [November 29, 2017, 9:50am UTC](https://discuss.elastic.co/t/how-to-output-to-multiple-http-endpoints/109549/3 "2017-11-29T09:50:18Z")

</div>

Thanks for the quick reply. But to clarify I have two more questions,  
1)If the newly added one fails, will it fail the whole thing in the next run.  
2)if it doesn't will the two http receivers will receive the same data?\

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 29, 2017, 10:28am UTC](https://discuss.elastic.co/t/how-to-output-to-multiple-http-endpoints/109549/4 "2017-11-29T10:28:28Z")

</div>

All events will be sent to all outputs. The general rule is that a single output that can't send data will halt the entire pipeline, but plugins could decide to drop events is there are problems. The http output will retry network-related problems but I don't think it cares if the HTTP server that responds to its requests returns an error.

---

<div class="post-metadata">

**Author:** ![Kasun\_Siyambalapitiy](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@Kasun\_Siyambalapitiy](https://discuss.elastic.co/u/Kasun_Siyambalapitiy)\
**Post date:** [November 29, 2017, 11:00am UTC](https://discuss.elastic.co/t/how-to-output-to-multiple-http-endpoints/109549/5 "2017-11-29T11:00:27Z")

</div>

Thank you for the answer, Could you please have a look on [{:timestamp=\>"2017-11-29T06:07:47.853000+0000", :message=\>"SIGTERM received. Shutting down the pipeline.", :level=\>:warn}](https://discuss.elastic.co/t/what-is-the-meaning-of-this-log-message/109565)

---

<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 27, 2017, 11:00am UTC](https://discuss.elastic.co/t/how-to-output-to-multiple-http-endpoints/109549/6 "2017-12-27T11:00:36Z")

</div>

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