# Irregular timeout exceptions on watchers

**URL:** https://discuss.elastic.co/t/irregular-timeout-exceptions-on-watchers/292325
**Category:** Kibana
**Tags:** elastic-stack-alerting
**Created:** [December 17, 2021, 3:15pm UTC](https://discuss.elastic.co/t/irregular-timeout-exceptions-on-watchers/292325 "2021-12-17T15:15:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pahuja1](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@pahuja1](https://discuss.elastic.co/u/pahuja1)
#### Post date: [December 17, 2021, 3:15pm UTC](https://discuss.elastic.co/t/irregular-timeout-exceptions-on-watchers/292325/1 "2021-12-17T15:15:55Z")

</div>

Hello,

We've been seeing some of the watchers throwing "timeout" exception. Please note that we are not seeing this behavior consistently. It happened successively for past 2 days but didn't throw and exception today.

```auto
 "result": {
    "execution_time": "2021-12-16T09:00:00.234Z",
    "execution_duration": 60001,
    "input": {
      "type": "search",
      "status": "failure",
      "error": {
        "root_cause": [
          {
            "type": "timeout_exception",
            "reason": "java.util.concurrent.TimeoutException: Timeout waiting for task."
          }
        ],
        "type": "timeout_exception",
        "reason": "java.util.concurrent.TimeoutException: Timeout waiting for task.",
        "caused_by": {
          "type": "timeout_exception",
          "reason": "Timeout waiting for task."
        }

```

Can someone please advise on what could we be doing wrong here?

Thanks.

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [December 20, 2021, 7:15pm UTC](https://discuss.elastic.co/t/irregular-timeout-exceptions-on-watchers/292325/2 "2021-12-20T19:15:54Z")

</div>

There is a dedicated timeout parameter, see [Watcher search input | Elasticsearch Guide [7.16] | Elastic ](https://www.elastic.co/guide/en/elasticsearch/reference/7.16/input-search.html)

do you know why your searches take so much time? Maybe solving that would be better than increasing a timeout.

Thanks  
Rashmi

---

<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: [January 17, 2022, 7:16pm UTC](https://discuss.elastic.co/t/irregular-timeout-exceptions-on-watchers/292325/3 "2022-01-17T19:16:18Z")

</div>

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