Current date time in kibana watcher action body

How can I print current time/watcher trigger time in action body of a kibana watcher?

Can you share what you have so far? You can get the current time with ctx.trigger.scheduled_time or ctx.trigger.current_time in the watcher script.

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