# Watcher and python client (8.6)

**URL:** <https://discuss.elastic.co/t/watcher-and-python-client-8-6/323811>\
**Category:** Elasticsearch\
**Created:** [January 24, 2023, 11:17am UTC](https://discuss.elastic.co/t/watcher-and-python-client-8-6/323811 "2023-01-24T11:17:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MalfuncEddie](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@MalfuncEddie](https://discuss.elastic.co/u/MalfuncEddie)\
**Post date:** [January 24, 2023, 11:17am UTC](https://discuss.elastic.co/t/watcher-and-python-client-8-6/323811/1 "2023-01-24T11:17:21Z")

</div>

Hi,

I was hoping someone can help me get started using the python client form elastic.

Background:  
I just upgrades to 8.6 and e python script that reads .watches does not work anymore.

results = es.search(size = 200,index=".watches", body=query)

This is because the . watches index no longer exists and is "replaced" with "/\_watcher/\_query/watches"

Unfortunately replacing the .watches with \_watches does not work. Reading through the very limited documentation [Elasticsearch API Reference — Python Elasticsearch client 8.7.0 documentation](https://elasticsearch-py.readthedocs.io/en/latest/api.html?highlight=watcher#watcher)  
it looks like I need " `elasticsearch.client.` `WatcherClient`"

Does any one got any examples around this or something that can get me started. The examples in de documentation are very limited to say the least.

---

<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:** [February 21, 2023, 11:17am UTC](https://discuss.elastic.co/t/watcher-and-python-client-8-6/323811/2 "2023-02-21T11:17:43Z")

</div>

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