# Getting watch history automatically

**URL:** <https://discuss.elastic.co/t/getting-watch-history-automatically/199047>\
**Category:** Elasticsearch\
**Created:** [September 11, 2019, 9:10am UTC](https://discuss.elastic.co/t/getting-watch-history-automatically/199047 "2019-09-11T09:10:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PortableInk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/portableink/32/45812_2.png) [@PortableInk](https://discuss.elastic.co/u/PortableInk)\
**Post date:** [September 11, 2019, 9:10am UTC](https://discuss.elastic.co/t/getting-watch-history-automatically/199047/1 "2019-09-11T09:10:48Z")

</div>

Hi,

I was looking at creating a watch that watches the other watches, indexing the last status of the watch (last triggered and last fired etc.) and sending out an email should a watch not fire when it should have.

Kibana has an undocumented API which is accessed when you load up the Watcher page (host.domain/api/watcher/watches), however this API isn't accessible through the Dev Tools console or by a watch. I have attempted to use a https request in the watch however I have run into a certification error.

```
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

```

Is there another way of automating the access without fixing the certificate error? I want to avoid having to fix this certificate error as I would have to liaise with the ELK stack owner which may take a few days and requires a restart of the cluster which is my last resort. I am also unsure if this would fix the problem.

Any information would be greatly appreciated.

Thanks.

---

<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:** [October 9, 2019, 9:11am UTC](https://discuss.elastic.co/t/getting-watch-history-automatically/199047/2 "2019-10-09T09:11:17Z")

</div>

Closed on October 9, 2019, 9:11am UTC

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