How to schedule a Watcher in local timezone?

Hello Community,

I'm bit confused why my watcher is not calculating the local timezone automatically. The below watcher should trigger hourly from 05:00 until 17:00.

When I check the log in Kibana, the Watcher starts triggering at 06:00, instead at 05:00.

image

How can I solve this issue? How can I set to use my local timezone?
I fear to adjust my Watchers manually between summer and winter time.

{
  "trigger": {
    "schedule": {
      "weekly": [
        {
          "on": [
            "MON",
            "TUE",
            "WED",
            "THU",
            "FRI"
          ],
          "at": [
            {
              "hour": [
                5,
                6,
                7,
                8,
                9,
                10,
                11,
                12,
                13,
                14,
                15,
                16,
                17
              ],
              "minute": [
                0,
                5,
                10,
                15,
                20,
                25,
                30,
                35,
                40,
                45,
                50,
                55
              ]
            }
          ]
        }
      ]
    }
  },

This needs to be done manually at the moment indeed. Everything in watcher is based on UTC right now. Feel free to also chime in at https://github.com/elastic/elasticsearch/issues/34659

2 Likes

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