# Watcher with multiple Trigger Schedules

**URL:** <https://discuss.elastic.co/t/watcher-with-multiple-trigger-schedules/275812>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [June 14, 2021, 9:12am UTC](https://discuss.elastic.co/t/watcher-with-multiple-trigger-schedules/275812 "2021-06-14T09:12:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![G.M](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@G.M](https://discuss.elastic.co/u/G.M)\
**Post date:** [June 14, 2021, 9:12am UTC](https://discuss.elastic.co/t/watcher-with-multiple-trigger-schedules/275812/1 "2021-06-14T09:12:05Z")

</div>

I am currently setting up watchers for my Elasticsearch indices. When trying to setup the trigger schedule, I tried to add multiple different schedules, e.g. a weekly schedule and a monthly schedule. However, after saving the watcher, only one schedule is saved and all the other ones are gone.

E.g.  
I want to create the following schedule:

```auto
"trigger": {
    "schedule": {
      "weekly" : [
        { "on" : "friday", "at" : "17:00" }
      ],
      "monthly" : [
        { "on" : 1, "at" : "12:00" }
      ]
    }
  }

```

when I now save this watcher, the resulting watcher has only the following schedule:

```auto
"trigger": {
    "schedule": {
      "monthly" : [
        { "on" : 1, "at" : "12:00" }
      ]
    }
  }

```

The weekly schedule is gone.

Is it not possible to create a watcher with multiple different schedule types?  
I mean, I could just create multple cron expression for the different schedules, so why should it not be possible to have multiple different schedule types?

Or am I doing something wrong?

Note: I am using Elasticsearch 7.12.1

---

<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:** [June 14, 2021, 1:35pm UTC](https://discuss.elastic.co/t/watcher-with-multiple-trigger-schedules/275812/2 "2021-06-14T13:35:37Z")

</div>

you can only set a single schedule per watch (like monthly **or** weekly). However this should throw an error if the watch tries to get stored. Feel free to open an issue in the Elasticsearch GitHub Repository at [Issues · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/issues)

Thanks!

---

<div class="post-metadata">

**Author:** ![G.M](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@G.M](https://discuss.elastic.co/u/G.M)\
**Post date:** [June 14, 2021, 2:46pm UTC](https://discuss.elastic.co/t/watcher-with-multiple-trigger-schedules/275812/3 "2021-06-14T14:46:16Z")

</div>

Ok, thanks for the info.  
I was creating the watcher using the Kibana UI and there it did not return any errors, it simply left out one schedule.

---

<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 12, 2021, 2:47pm UTC](https://discuss.elastic.co/t/watcher-with-multiple-trigger-schedules/275812/4 "2021-07-12T14:47:11Z")

</div>

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