# Elastic watcher webhook - lack of retry mechanism

**URL:** https://discuss.elastic.co/t/elastic-watcher-webhook-lack-of-retry-mechanism/286973
**Category:** Elasticsearch
**Tags:** elastic-stack-alerting
**Created:** [October 18, 2021, 10:27am UTC](https://discuss.elastic.co/t/elastic-watcher-webhook-lack-of-retry-mechanism/286973 "2021-10-18T10:27:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hcdmonitor](https://avatars.discourse-cdn.com/v4/letter/h/b19c9b/32.png) [@hcdmonitor](https://discuss.elastic.co/u/hcdmonitor)
#### Post date: [October 18, 2021, 10:27am UTC](https://discuss.elastic.co/t/elastic-watcher-webhook-lack-of-retry-mechanism/286973/1 "2021-10-18T10:27:36Z")

</div>

We use Elastic watcher webhook actions to post event information to an external system using an API. This works fine most of the time but there are occasions when the action fails, seemingly due to the endpoint not responding, e.g.

```auto
    "actions": [
      {
        "id": "*myactionid*",
        "type": "webhook",
        "status": "failure",
        "error": {
          "root_cause": [
            {
              "type": "no_http_response_exception",
              "reason": "*myhost:80* failed to respond"
            }
          ],
          "type": "no_http_response_exception",
          "reason": "*myhost:80* failed to respond"
        }
      }
    ]

```

Our API endpoint is very reliable and we will keep investigating whether the volume/payload of API calls may be an issue.

Regardless, it would be very useful if the webhook action could **support a retry mechanism**.

By specifying the number of retries and a sleep period between retries, we could mitigate temporary glitches in the watcher -\> API endpoint communications.

Does anyone have the same issue? Are there plans to update the webhook watcher action?

Thanks

---

<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: [November 15, 2021, 10:27am UTC](https://discuss.elastic.co/t/elastic-watcher-webhook-lack-of-retry-mechanism/286973/2 "2021-11-15T10:27:40Z")

</div>

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