How to create watcher for failed snapshot?

Dear all,

I want to create a watcher to trigger every day to check whether there's any failed snapshot on that day. I want to use the HTTP input with the endpoint: /_snapshot/s3-repository/_all.

However, the API seems to return all the snapshot history. What parameter could I pass into the API to filter N latest snapshots, and status=FAILED if possible? I cannot find the API docs anywhere.

Thanks in advance.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.