How to retrieve xpack watch_id


(Anna) #1

Currently I replaced all data nodes and my cluster is red. There are unassigned shards in .watches index which I'm unable to delete.

Based on this documentation I need to add watch_id in delete query
https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html


(Alexander Reelsen) #2

the delete watch API allows you to delete single watches.

However in this case the index that stores the watches is not available at all. Either you bring back a node which contained that index, or, if you are good with losing all of your data in that index you could delete (and potentially restore via a snapshot).

Hope this helps.