List All Watches


(Bill Anderson) #1

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?


(Bill Anderson) #2

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


(Alexander Reelsen) #3

Hey,

yes, that is the correct way.

--Alex


(system) #4

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