# Can 'Index action' update the documents that satisfy condition of watch?

**URL:** <https://discuss.elastic.co/t/can-index-action-update-the-documents-that-satisfy-condition-of-watch/27649>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [August 19, 2015, 8:33am UTC](https://discuss.elastic.co/t/can-index-action-update-the-documents-that-satisfy-condition-of-watch/27649 "2015-08-19T08:33:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranavburnwal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pranavburnwal/32/3714_2.png) [@pranavburnwal](https://discuss.elastic.co/u/pranavburnwal)\
**Post date:** [August 19, 2015, 8:33am UTC](https://discuss.elastic.co/t/can-index-action-update-the-documents-that-satisfy-condition-of-watch/27649/1 "2015-08-19T08:33:06Z")

</div>

Hi all,

I wanted to ask if we can update the document in ES that satisfy a watch's condition. Appropriately add a field or a tag by replacing the document or updating the document with a new version.  
For example:

> {  
> &nbsp;&nbsp;&nbsp;&nbsp;"Cpu"&nbsp;: "80"  
> }

Watch condition : `Cpu > 70`

> {  
> &nbsp;&nbsp;&nbsp;&nbsp;"Cpu"&nbsp;: "80"  
> &nbsp;&nbsp;&nbsp;&nbsp;"tag" : "overlimit"  
> }

OR

> {  
> &nbsp;&nbsp;&nbsp;&nbsp;"Cpu"&nbsp;: "80"  
> &nbsp;&nbsp;&nbsp;&nbsp;"Overlimit" : "T"  
> }

If possible can you please give a sample for this, or a sample or alternate workaround.

I am open for suggestions.

Pranav 🏇

---

<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/can-index-action-update-the-documents-that-satisfy-condition-of-watch/27649/2 "2017-07-06T13:48:56Z")

</div>


