List All Watches

Is there any way to list all watches? I thought it would be simple, but I can't find any way to do it. I get results from GET _xpack/watcher/watch/<watch id> and can get the basic stats with GET _xpack/watcher/stats. When I try GET _xpack/watcher/stats/_all I get the correct watch count, but there is not a list of the watch ids.

{
  "watcher_state": "started",
  "watch_count": 4,
  "execution_thread_pool": {
    "queue_size": 0,
    "max_size": 5
  },
  "current_watches": [],
  "queued_watches": [],
  "manually_stopped": false
}

Does anyone have any ideas?

I don't know if this is the correct way, but I can get a list of all of the watches with GET /.watches/_search

1 Like

Hey,

yes, that is the correct way.

--Alex

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