I created new Security Analytics detectors in OpenSearch Dashboards (OSD). However, one of them is not visible at all, but sends emails every 1 minute. And the other one is visible in the OSD, but I can’t remove it.
I am using the latest version of OpenSearch 2.6.0.
If this is only detector in your system currently, then you should see 1 monitor returned by this _search call. You can then delete it by calling:
DELETE /_plugins/_alerting/monitors/{monitorId}
This is known issue in 2.6 I think. One of monitors failed deleting during first DELETE call on detector and now it’s erroring out if one of monitors is missing during deletion, instead of just continuing .
Yes, I use the admin. After I deleted the OSD invisible monitor from table, notifications stop coming. But in OSD I still see one monitor, with an empty table .opendistro-alerting-config. This one cannot be deteled in OSD.
I had the same issue Issue with Scheduled job for detectors
I opened a topic before finding this, turns out you can’t find the detector through the API without using the security admin to make the request
search action for .opendistro-alerting-config is not allowed for a non adminDN user