# Updating Sentinl-watcher field

**URL:** <https://discuss.elastic.co/t/updating-sentinl-watcher-field/216295>\
**Category:** Elasticsearch\
**Tags:** painless\
**Created:** [January 23, 2020, 4:51pm UTC](https://discuss.elastic.co/t/updating-sentinl-watcher-field/216295 "2020-01-23T16:51:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhi3](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@Abhi3](https://discuss.elastic.co/u/Abhi3)\
**Post date:** [January 23, 2020, 4:51pm UTC](https://discuss.elastic.co/t/updating-sentinl-watcher-field/216295/1 "2020-01-23T16:51:45Z")

</div>

Hi,  
I am using sentinl Plugin in my Elasticsearch cluster.

I am trying to update the sentinl-watcher. disable field. But getting errors using painless.

**POST .kibana/\_update\_by\_query?conflicts=proceed**  
**{"query": {**  
\*\* "exists": {\*\*  
\*\* "field": "sentinl-watcher"\*\*  
\*\* }},\*\*  
\*\* "script": {\*\*  
\*\* "lang": "painless",\*\*  
\*\* "source": "ctx.\_source['sentinl-watcher'.disable] = true"\*\*

* * *

\*\* }\*\*  
**}**

Error:-

{  
"error": {  
"root\_cause": [  
{  
"type": "script\_exception",  
"reason": "compile error",  
"script\_stack": [  
"... source[/'sentinl-watcher/'.disable] = true",  
" ^---- HERE"  
],  
"script": "ctx.\_source[/'sentinl-watcher/'.disable] = true",  
"lang": "painless"  
}  
],  
"type": "script\_exception",  
"reason": "compile error",  
"script\_stack": [  
"... source[/'sentinl-watcher/'.disable] = true",  
" ^---- HERE"  
],  
"script": "ctx.\_source[/'sentinl-watcher/'.disable] = true",  
"lang": "painless",  
"caused\_by": {  
"type": "illegal\_argument\_exception",  
"reason": "unexpected character ['.disable] = true].",  
"caused\_by": {  
"type": "lexer\_no\_viable\_alt\_exception",  
"reason": null  
}  
}  
},  
"status": 500

---

<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:** [February 20, 2020, 4:51pm UTC](https://discuss.elastic.co/t/updating-sentinl-watcher-field/216295/2 "2020-02-20T16:51:48Z")

</div>

Closed on February 20, 2020, 4:51pm UTC

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