# Watcher error unexpected token \[START\_OBJECT\]"

**URL:** <https://discuss.elastic.co/t/watcher-error-unexpected-token-start-object/49980>\
**Category:** Elasticsearch\
**Created:** [May 13, 2016, 9:15am UTC](https://discuss.elastic.co/t/watcher-error-unexpected-token-start-object/49980 "2016-05-13T09:15:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patel\_Viral](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@Patel\_Viral](https://discuss.elastic.co/u/Patel_Viral)\
**Post date:** [May 13, 2016, 9:15am UTC](https://discuss.elastic.co/t/watcher-error-unexpected-token-start-object/49980/1 "2016-05-13T09:15:10Z")

</div>

Hey, I'm kinda a newbie to Elastic search and I am trying to create watcher but having some issues. Below is the code, it would be great if someone could help me resolving the issue.

{  
"trigger" : {  
"schedule" : {  
"daily" : {  
"at" : {  
"hour" : [5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 0, 1],  
"minute" : [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55]  
}  
}  
}  
},  
"input" : {  
"search" : {  
"request" : {  
"indices" : [  
"",  
""  
]  
},  
"body": {  
"query": {  
"filtered": {  
"query": {  
"query\_string": {  
"query": "moduleid:19064 moduleid:19063 moduleid:19075 moduleid:19065 moduleid:19062 moduleid:19061 moduleid:19066",  
"analyze\_wildcard": true,  
"lowercase\_expanded\_terms": false  
}  
},  
"filter": {  
"bool": {  
"must": [  
{  
"range": {  
"@timestamp": {  
"gte": "now-10m"  
}  
}  
}  
]  
}  
}  
}  
}  
}  
}  
},  
"condition" : {  
"compare" : { "ctx.payload.hits.total" : { "lt" : 1 }}  
},  
"transform" : {  
"script" : "return [watchname : ctx.watch\_id, message : "Stopped Receiving Bets On Evolution Platform", "@timestamp" : ctx.execution\_time]"  
},  
"actions" : {  
"email\_alert" : {  
"throttle\_period" : "60m",  
"email": {  
"to":[  
"sdsd@sdsds.com",  
"sdsd@sdsds.com"  
],  
"subject": "[ELASTICSEARCH] {{ctx.watch\_id}}: Stopped Receiving Bets On Evolution Platform",  
"body": "Please check the Evolution Platform, potential issue.",  
"priority": "high"  
}  
},  
"log\_error" : {  
"logging" : {  
"text" : "[WATCHER] {{ctx.payload.message}}",  
"category" : "wintech.NoEvolutionBets",  
"level" : "INFO"  
}  
},  
"index\_payload" : {  
"index" : {  
"index" : "watcher\_alerts",  
"doc\_type" : "alert"  
}  
}  
}  
}

---

<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 5, 2017, 10:51pm UTC](https://discuss.elastic.co/t/watcher-error-unexpected-token-start-object/49980/2 "2017-07-05T22:51:51Z")

</div>


