# I need to Configure a Watcher that after of the alarm is triggered for first time, the interval de execution increase to 30 minutes

**URL:** <https://discuss.elastic.co/t/i-need-to-configure-a-watcher-that-after-of-the-alarm-is-triggered-for-first-time-the-interval-de-execution-increase-to-30-minutes/207175>\
**Category:** Elasticsearch\
**Created:** [November 8, 2019, 9:15pm UTC](https://discuss.elastic.co/t/i-need-to-configure-a-watcher-that-after-of-the-alarm-is-triggered-for-first-time-the-interval-de-execution-increase-to-30-minutes/207175 "2019-11-08T21:15:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andres\_fever](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@andres\_fever](https://discuss.elastic.co/u/andres_fever)\
**Post date:** [November 8, 2019, 9:15pm UTC](https://discuss.elastic.co/t/i-need-to-configure-a-watcher-that-after-of-the-alarm-is-triggered-for-first-time-the-interval-de-execution-increase-to-30-minutes/207175/1 "2019-11-08T21:15:52Z")

</div>

Hello, I have an alarm developed in a wacther in kibana and the interval from execution is 1 minute so when the condition is true a long time, this alarm activates all time.  
I need that after of the alarm is triggered for first time, the interval de execution increase to 30 minutes.

```
{
  "trigger": {
    "schedule": {
      "interval": "1m"
    }
  },
  "input": {
    "search": {
      "request": {
        "search_type": "query_then_fetch",
        "indices": [
          "example-*"
        ],
        "types": [],
        "body": {
          "size": 0,
          "query": {
            "bool": {
              "must": [
                {
                  "query_string": {
                    "query": "match1"
                  }
                },
                {
                  "range": {
                    "@timestamp": {
                      "gte": "now-1m",
                      "lte": "now",
                      "time_zone": "-05:00"
                    }
                  }
                }
              ]
            }
          }
        }
      }
    }
  },
  "condition": {
    "compare": {
      "ctx.payload.hits.total": {
        "gte": 30
      }
    }
  },
  "actions": {
    "send_email": {
      "email": {
        "profile": "standard",
        "priority": "normal",
        "to": [
          "<foo@foo.com>,<foo@foo.com>"
        ],
        "subject": "Watcher Kibana Errors - match1",
        "body": {
          "text": "foooo {{ctx.payload.hits.total}} errors match1"
        }
      }
    }
  }
}

```

Thanks you!

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [November 9, 2019, 12:06am UTC](https://discuss.elastic.co/t/i-need-to-configure-a-watcher-that-after-of-the-alarm-is-triggered-for-first-time-the-interval-de-execution-increase-to-30-minutes/207175/2 "2019-11-09T00:06:11Z")

</div>

> [@andres\_fever](#):
>
> I need that after of the alarm is triggered for first time, the interval de execution increase to 30 minutes.

Would [action throttling](https://www.elastic.co/guide/en/elasticsearch/reference/7.4/actions.html#actions-ack-throttle) work for you instead?

---

<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 7, 2019, 12:06am UTC](https://discuss.elastic.co/t/i-need-to-configure-a-watcher-that-after-of-the-alarm-is-triggered-for-first-time-the-interval-de-execution-increase-to-30-minutes/207175/3 "2019-12-07T00:06:20Z")

</div>

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