I am using elasticsearch opendistro 7.2. and I have monitors with triggers created. I want to be able to delete all monitors that are relevant to a specific index (let's say "events_index").
This does not seem to work, any ideas how I should approach this?
GET _opendistro/_alerting/monitors/_search
{"query": {"bool": {"should": [
{"term": {"monitor.inputs.search.indices": "events_index"}}
]}}}
This should work:
Alternatively, using the query you mentioned: