How to end up sending custom notifications from the opensearch API

Describe the issue:

Hi, I have a custom python script that gathers anomalies from the anomaly detection plugin every X minutes, processes and filters them and is supposed to send notifications with the anomalies left after the filter.

Is there a way for me to use the alerting/notification pipeline for this last step? I checked the API but I saw it’s not possible to send a notification directly, and I don’t see a way to do this with triggers/alerts.

Hi @xvallspf ,

It’s possible to pair the Anomaly Detection plugin with the Alerting plugin to notify you as soon as an anomaly is detected.

If it’s a per-query monitor, you can choose ‘Anomaly detector’ in the Monitor Defining Method section:

In the Trigger section, you can define the type of anomaly detector trigger. It can be either ‘Anomaly detector grade and confidence’ or ‘Extraction query response’:

Have you tried to create a pipeline with anomaly detection and alerting plugin in your lab? If so, what issues did you have?