# Accessing .watcher-history index in Canvas?

**URL:** <https://discuss.elastic.co/t/accessing-watcher-history-index-in-canvas/262823>\
**Category:** Kibana\
**Created:** [February 1, 2021, 10:54am UTC](https://discuss.elastic.co/t/accessing-watcher-history-index-in-canvas/262823 "2021-02-01T10:54:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![VishalBhalla](https://avatars.discourse-cdn.com/v4/letter/v/ad7895/32.png) [@VishalBhalla](https://discuss.elastic.co/u/VishalBhalla)\
**Post date:** [February 1, 2021, 10:54am UTC](https://discuss.elastic.co/t/accessing-watcher-history-index-in-canvas/262823/1 "2021-02-01T10:54:14Z")

</div>

Hello, I can't seem to access the `.watcher-history` index from within Canvas.

Trying to use an ESSQL query such as:

```auto
SELECT "result.input.payload.alert.hits.hits"
FROM ".watcher-history"
LIMIT 99

```

Just results in the error:

```auto
Whoops! Expression failed
Expression failed with the message:
 
[essql] > Unexpected error from Elasticsearch: [verification_exception] Found 1 problem line 3:6: Unknown index [.watcher-history]

```

I know I can access this data via a Visualisation, but I'd prefer to do this in Canvas. Is this possible?

Thanks.

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [February 1, 2021, 12:24pm UTC](https://discuss.elastic.co/t/accessing-watcher-history-index-in-canvas/262823/2 "2021-02-01T12:24:52Z")

</div>

> [@VishalBhalla](#):
>
> `FROM ".watcher-history"`

I don't think there is an index with such name. I know Watcher indices always have a date/version postfix, like this `.watcher-history-7-2018.03.24`. Have you tried `FROM ".watcher-history*"` instead (quotes are important)?

Best,  
Oleg

---

<div class="post-metadata">

**Author:** ![VishalBhalla](https://avatars.discourse-cdn.com/v4/letter/v/ad7895/32.png) [@VishalBhalla](https://discuss.elastic.co/u/VishalBhalla)\
**Post date:** [February 1, 2021, 1:56pm UTC](https://discuss.elastic.co/t/accessing-watcher-history-index-in-canvas/262823/3 "2021-02-01T13:56:01Z")

</div>

Yup, that was it! Doh! So ended up with:

```auto
SELECT watch_id

FROM ".watcher-history*"

GROUP BY watch_id

```

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:** [March 1, 2021, 1:56pm UTC](https://discuss.elastic.co/t/accessing-watcher-history-index-in-canvas/262823/4 "2021-03-01T13:56:33Z")

</div>

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