# \#! Deprecation: \[types removal\] Specifying types in a watcher index action is deprecated

**URL:** https://discuss.elastic.co/t/deprecation-types-removal-specifying-types-in-a-watcher-index-action-is-deprecated/291815
**Category:** Kibana
**Tags:** elastic-stack-security, elastic-stack-alerting
**Created:** [December 14, 2021, 2:33pm UTC](https://discuss.elastic.co/t/deprecation-types-removal-specifying-types-in-a-watcher-index-action-is-deprecated/291815 "2021-12-14T14:33:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![DoDuyen162000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/doduyen162000/32/95501_2.png) [@DoDuyen162000](https://discuss.elastic.co/u/DoDuyen162000)
#### Post date: [December 14, 2021, 2:33pm UTC](https://discuss.elastic.co/t/deprecation-types-removal-specifying-types-in-a-watcher-index-action-is-deprecated/291815/1 "2021-12-14T14:33:20Z")

</div>

I'm having trouble creating a watcher. I don't know what I was wrong about? Here's my fault:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/8/9869b3154eb45e5ffd811a7cccdc7a8df4d02d35.png)

![image](https://us1.discourse-cdn.com/elastic/original/3X/7/a/7aa8930743abf5e48817667ae74ac5f9662c5943.png)

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [December 16, 2021, 1:24am UTC](https://discuss.elastic.co/t/deprecation-types-removal-specifying-types-in-a-watcher-index-action-is-deprecated/291815/2 "2021-12-16T01:24:43Z")

</div>

Please see: [Removal of mapping types | Elasticsearch Guide [6.8] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/removal-of-types.html)

The `doc_type` in your watch is a mapping type, and should be avoided.

---

<div class="post-metadata">

### Author: ![DoDuyen162000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/doduyen162000/32/95501_2.png) [@DoDuyen162000](https://discuss.elastic.co/u/DoDuyen162000)
#### Post date: [December 18, 2021, 4:47am UTC](https://discuss.elastic.co/t/deprecation-types-removal-specifying-types-in-a-watcher-index-action-is-deprecated/291815/3 "2021-12-18T04:47:22Z")

</div>

thanks you! \<3

---

<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: [January 15, 2022, 4:47am UTC](https://discuss.elastic.co/t/deprecation-types-removal-specifying-types-in-a-watcher-index-action-is-deprecated/291815/4 "2022-01-15T04:47:23Z")

</div>

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