# Remove \_value in watcher output from REST call

**URL:** <https://discuss.elastic.co/t/remove-value-in-watcher-output-from-rest-call/300119>\
**Category:** Kibana\
**Created:** [March 20, 2022, 10:22am UTC](https://discuss.elastic.co/t/remove-value-in-watcher-output-from-rest-call/300119 "2022-03-20T10:22:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stobbe99](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@stobbe99](https://discuss.elastic.co/u/stobbe99)\
**Post date:** [March 20, 2022, 10:22am UTC](https://discuss.elastic.co/t/remove-value-in-watcher-output-from-rest-call/300119/1 "2022-03-20T10:22:02Z")

</div>

I my watcher I collect a record from the rest interface, retrieve a nice Json. But in the index part of the watcher it adds \_value to the index:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/d/0d14cd2c2a43e6940e5f8379f3f7b70e8cd5ea24.png)

This means all fields in the index get "\_value." before there name.

Does anybody know how to remove the \_value ?

KR Henk

---

<div class="post-metadata">

**Author:** ![ylasri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ylasri/32/86120_2.png) [@ylasri](https://discuss.elastic.co/u/ylasri)\
**Post date:** [March 20, 2022, 2:13pm UTC](https://discuss.elastic.co/t/remove-value-in-watcher-output-from-rest-call/300119/2 "2022-03-20T14:13:32Z")

</div>

You can tranform payload using a painless script  
Refer to this link

> **[Watcher script payload transform | Elasticsearch Guide \[8.1\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/transform-script.html)**

---

<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:** [April 17, 2022, 2:13pm UTC](https://discuss.elastic.co/t/remove-value-in-watcher-output-from-rest-call/300119/3 "2022-04-17T14:13:53Z")

</div>

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