# How to create watcher for failed snapshot?

**URL:** <https://discuss.elastic.co/t/how-to-create-watcher-for-failed-snapshot/229587>\
**Category:** Elasticsearch\
**Created:** [April 24, 2020, 7:27am UTC](https://discuss.elastic.co/t/how-to-create-watcher-for-failed-snapshot/229587 "2020-04-24T07:27:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jack\_Phan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_phan/32/44738_2.png) [@Jack\_Phan](https://discuss.elastic.co/u/Jack_Phan)\
**Post date:** [April 24, 2020, 7:27am UTC](https://discuss.elastic.co/t/how-to-create-watcher-for-failed-snapshot/229587/1 "2020-04-24T07:27:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 22, 2020, 7:27am UTC](https://discuss.elastic.co/t/how-to-create-watcher-for-failed-snapshot/229587/2 "2020-05-22T07:27:31Z")

</div>

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