# Can we specify different http endpoint during retry for logstash-http-output-plugin

**URL:** <https://discuss.elastic.co/t/can-we-specify-different-http-endpoint-during-retry-for-logstash-http-output-plugin/235629>\
**Category:** Logstash\
**Created:** [June 3, 2020, 7:47pm UTC](https://discuss.elastic.co/t/can-we-specify-different-http-endpoint-during-retry-for-logstash-http-output-plugin/235629 "2020-06-03T19:47:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gangadhar\_Mahadevan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gangadhar_mahadevan/32/62579_2.png) [@Gangadhar\_Mahadevan](https://discuss.elastic.co/u/Gangadhar_Mahadevan)\
**Post date:** [June 3, 2020, 7:47pm UTC](https://discuss.elastic.co/t/can-we-specify-different-http-endpoint-during-retry-for-logstash-http-output-plugin/235629/1 "2020-06-03T19:47:03Z")

</div>

Hi,

I got the basic logstash-http-output plugin working to send our kafka events to webhook endpoint.

The output.conf looks like this

```auto
output {
  http {
    url => "https://oss-flow.test1.com/hooks/tip-alert"
    http_method => "post"
    format => "json"
    headers => ["Authorization", "<xxx>"]
  }
}

```

Is there a way where I can tell logstash to re-try different endpoint [https://oss-flow.test2.com/hooks/tip-alert](https://oss-flow.test2.com/hooks/tip-alert) upon receving 5xx code after couple of retries against [https://oss-flow.test1.com/hooks/tip-alert](https://oss-flow.test1.com/hooks/tip-alert) . Thanks!

---

<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:** [June 3, 2020, 7:59pm UTC](https://discuss.elastic.co/t/can-we-specify-different-http-endpoint-during-retry-for-logstash-http-output-plugin/235629/2 "2020-06-03T19:59:48Z")

</div>

> [@Gangadhar\_Mahadevan](#):
>
> Is there a way where I can tell logstash to re-try different endpoint

I do not believe that is possible.

---

<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:** [July 1, 2020, 7:59pm UTC](https://discuss.elastic.co/t/can-we-specify-different-http-endpoint-during-retry-for-logstash-http-output-plugin/235629/3 "2020-07-01T19:59:54Z")

</div>

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