Hello everyone!
Kibana saves alerts in a index .opendistro-alerting-alerts
and when the alert completes, It moves it to .opendistro-alerting-alert-history.yyyy.mm
.
I have a check-incident
function in a step-function on AWS. check-incident
runs every 2 minutes and checks the status of the incident.
Right now, I am using Get
endpoint to fetch this doc from .opendistro-alerting-alerts
but this fails when the incident is actually completed since the doc is no longer present in this index.
So, What is the best way to look for a doc across multiple indexes? I want to look for a doc with id X
across .opendistro-alerting-alert*
. I believe, Get
endpoint doesn't accept wildcards. So, What is the best way to do this?