# Watch history not written

**URL:** https://discuss.elastic.co/t/watch-history-not-written/49869
**Category:** Elasticsearch
**Tags:** elastic-stack-alerting
**Created:** [May 12, 2016, 8:43am UTC](https://discuss.elastic.co/t/watch-history-not-written/49869 "2016-05-12T08:43:09Z")
**Posts on this page:** 5
**Page:** 2

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [July 13, 2016, 11:36am UTC](https://discuss.elastic.co/t/watch-history-not-written/49869/22 "2016-07-13T11:36:36Z")

</div>

Hey,

this is fixed in in the 2.3.4 version of watcher, see the release notes [https://www.elastic.co/guide/en/watcher/2.3/release-notes.html](https://www.elastic.co/guide/en/watcher/2.3/release-notes.html)

--Alex

---

<div class="post-metadata">

### Author: ![bas\_vdl](https://avatars.discourse-cdn.com/v4/letter/b/898d66/32.png) [@bas\_vdl](https://discuss.elastic.co/u/bas_vdl)
#### Post date: [July 13, 2016, 12:32pm UTC](https://discuss.elastic.co/t/watch-history-not-written/49869/23 "2016-07-13T12:32:46Z")

</div>

> I've done an upgrade to 2.3.4, but no luck...

> ```
> [2016-07-13 14:31:27,317][ERROR][watcher.execution] [****** -esn00] failed to update watch record [url_nu.nl_2-2016-07-13T12:31:26.559Z]
> MapperParsingException[Field name [trigger_event.triggered_time] cannot contain '.']
> 
> ```

I forget about the last part:  
_Note that this just updates the template, so you_  
_need to wait one day for this update to take effect when a new history index is_  
_created_

Let wait until tomorrow...

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [July 13, 2016, 12:49pm UTC](https://discuss.elastic.co/t/watch-history-not-written/49869/24 "2016-07-13T12:49:21Z")

</div>

Hey,

If this is a test cluster you could delete the history index as well, otherwise waiting might be easier. if it does not work by tomorrow, please provide the whole failing watch, so I can try to reproduce the issue. Thanks!

--Alex

---

<div class="post-metadata">

### Author: ![Ryan\_Grannell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ryan_grannell/32/41712_2.png) [@Ryan\_Grannell](https://discuss.elastic.co/u/Ryan_Grannell)
#### Post date: [January 9, 2017, 1:25pm UTC](https://discuss.elastic.co/t/watch-history-not-written/49869/25 "2017-01-09T13:25:22Z")

</div>

Hi,

I'm getting this problem on version 2.3.4 for chained queries. I included the watch, so hopefully the problem is reproducible.

I'm using a chained-query watcher to detect when a recently executed watch stops executing (i.e when the problem is fixed), but this problem is preventing me from finishing implementing the recovery alert.

I'm trying to detect whether a "recovery" watch alert was already sent, which requires me to get the watch-history for the chained watcher. (I'm doing this to prevent a recovery email isn't sent twice).

I'm currently on versions:

- ElasticSearch 2.3.4
- Watcher 2.3.4

and am getting the error:

```
[2017-01-09 13:08:39,920][ERROR][watcher.execution] failed to update watch record [recovery_logstash_direct_heartbeat_xxxxxxx_dev_vm_logstash_cus_0_0-2017-01-09T13:08:39.857Z] MapperParsingException[Field name [ctx.payload.hits.total] cannot contain '.']

```

for the following watcher. Ignore the "awaits\_successful\_execution" message, as I've deleted / renamed this a few times; when using the execute API this watcher executed successfully, but it's watch-history record wasn't written.

> <http://pastebin.com/raw/nszTMtFa>

Is there any advice anyone has for getting around this problem? Will upgrading to ElasticSearch 5.\* and Watcher 5.\* resolve this?

EDIT: Sorry, I read the changelog, which says this is fixed in 2.3.5. I'll upgrade, and test whether this is resolved

---

<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:42pm UTC](https://discuss.elastic.co/t/watch-history-not-written/49869/26 "2017-07-06T13:42:05Z")

</div>



[Previous page](https://discuss.elastic.co/t/watch-history-not-written/49869.md?page=1)
