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:
"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:
"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