# Question on watcher trigger schedule - Activate from 6am to 10pm daily, run every 5 minutes

**URL:** <https://discuss.elastic.co/t/question-on-watcher-trigger-schedule-activate-from-6am-to-10pm-daily-run-every-5-minutes/99654>\
**Category:** Elasticsearch\
**Created:** [September 7, 2017, 2:38am UTC](https://discuss.elastic.co/t/question-on-watcher-trigger-schedule-activate-from-6am-to-10pm-daily-run-every-5-minutes/99654 "2017-09-07T02:38:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joedissmeyer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joedissmeyer/32/26163_2.png) [@joedissmeyer](https://discuss.elastic.co/u/joedissmeyer)\
**Post date:** [September 7, 2017, 2:38am UTC](https://discuss.elastic.co/t/question-on-watcher-trigger-schedule-activate-from-6am-to-10pm-daily-run-every-5-minutes/99654/1 "2017-09-07T02:38:40Z")

</div>

What I am trying to do is activate a watch rule to run in 5 minute intervals only from 6am to 10pm every single day.

Is this an appropriate trigger schedule to achieve this goal?

```auto
"trigger" : {
    "schedule" : {
      "daily" : {
        "at" {
          "hour" : [6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22],
          "minute" : [0,5,10,15,20,25,30,35,40,45,50,55]
        }
      }
    }
  },

```

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [September 8, 2017, 9:22am UTC](https://discuss.elastic.co/t/question-on-watcher-trigger-schedule-activate-from-6am-to-10pm-daily-run-every-5-minutes/99654/2 "2017-09-08T09:22:35Z")

</div>

yes this is. alternatively you could use a cron expression if you wanted, but this should work as well.

---

<div class="post-metadata">

**Author:** ![joedissmeyer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joedissmeyer/32/26163_2.png) [@joedissmeyer](https://discuss.elastic.co/u/joedissmeyer)\
**Post date:** [September 12, 2017, 2:42pm UTC](https://discuss.elastic.co/t/question-on-watcher-trigger-schedule-activate-from-6am-to-10pm-daily-run-every-5-minutes/99654/3 "2017-09-12T14:42:03Z")

</div>

Thank you for confirming @spinscale! This is definitely the correct solved answer.

I did have Nick Lang reach out to me on this one as well and he provided some cron expression examples for this same goal:

```auto
0 0/5 6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 ? * * *
or
0 0/5 6-22 ? * * *

```

I'm going to stick with the long format for now but it is nice to know there are several scheduling options available depending on the needs.

---

<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:** [October 10, 2017, 2:42pm UTC](https://discuss.elastic.co/t/question-on-watcher-trigger-schedule-activate-from-6am-to-10pm-daily-run-every-5-minutes/99654/4 "2017-10-10T14:42:17Z")

</div>

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