# Is it possible to modify the default watch history mapping?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-modify-the-default-watch-history-mapping/29431>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [September 16, 2015, 5:31pm UTC](https://discuss.elastic.co/t/is-it-possible-to-modify-the-default-watch-history-mapping/29431 "2015-09-16T17:31:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jyeh](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@jyeh](https://discuss.elastic.co/u/jyeh)\
**Post date:** [September 16, 2015, 5:31pm UTC](https://discuss.elastic.co/t/is-it-possible-to-modify-the-default-watch-history-mapping/29431/1 "2015-09-16T17:31:08Z")

</div>

Would it be viable to modify watch history mapping? (primarily to enable payload logging to allow for search. I am really just looking for hits.total property). Would the best approach be to use logging action and log the value?

Thanks  
-J

---

<div class="post-metadata">

**Author:** ![uboness](https://avatars.discourse-cdn.com/v4/letter/u/96bed5/32.png) [@uboness](https://discuss.elastic.co/u/uboness)\
**Post date:** [September 16, 2015, 5:46pm UTC](https://discuss.elastic.co/t/is-it-possible-to-modify-the-default-watch-history-mapping/29431/2 "2015-09-16T17:46:21Z")

</div>

Hi Jyeh,

Please read the following thread: [Customize watch and/or watch\_history index template](https://discuss.elastic.co/t/customize-watch-and-or-watch-history-index-template/28539)

In short, no.. it's not possible to change the mapping as it can cause mapping conflicts between different executions.

---

<div class="post-metadata">

**Author:** ![skearns](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skearns/32/125945_2.png) [@skearns](https://discuss.elastic.co/u/skearns)\
**Post date:** [September 16, 2015, 5:55pm UTC](https://discuss.elastic.co/t/is-it-possible-to-modify-the-default-watch-history-mapping/29431/3 "2015-09-16T17:55:53Z")

</div>

Hi Jyeh,

Depending on what you're doing, you might also be able to use the [indexing action](https://www.elastic.co/guide/en/watcher/current/actions.html#actions-index) to store the relevant results in another index where you can control the mappings.

Thanks,  
Steve

---

<div class="post-metadata">

**Author:** ![jyeh](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@jyeh](https://discuss.elastic.co/u/jyeh)\
**Post date:** [September 16, 2015, 6:45pm UTC](https://discuss.elastic.co/t/is-it-possible-to-modify-the-default-watch-history-mapping/29431/4 "2015-09-16T18:45:38Z")

</div>

Thanks, the other thread captured what I was asking more clearly.  
I will explore the indexing/logging action options as there are no other way to modify the mapping currently.

---

<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:** [July 6, 2017, 1:48pm UTC](https://discuss.elastic.co/t/is-it-possible-to-modify-the-default-watch-history-mapping/29431/5 "2017-07-06T13:48:39Z")

</div>


