I was trying to delete my previous watch and set a new one called countAuth
PUT _xpack/watcher/watch/countAuth
{
"trigger" : {
"schedule" : {
"interval" : "1m"
}
},
"actions" : {
"email_admin" : {
"email" : {
"from" : "Symantec Alerting"
"to" : "echowu720@gmail.com",
"subject" : "Error Monitoring Report",
"priority" : "high"
}
}
}
}
But the response shows
{
"error": {
"root_cause": [
{
"type": "i_o_exception",
"reason": "could not parse watch [countAuth]"
}
],
"type": "i_o_exception",
"reason": "could not parse watch [countAuth]",
"caused_by": {
"type": "json_parse_exception",
"reason": "Unexpected character ('\"' (code 34)): was expecting comma to separate Object entries\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@1636a0f4; line: 11, column: 10]"
}
},
"status": 500
}