Updating Sentinl-watcher field

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

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