error [12:29:42.659] [null_pointer_exception] null :: {"path":"/_xpack/watcher/watch/_execute","query":{},"body":"{"trigger_data":{},"action_modes":{"my_webhook":"simulate"},"watch":{"metadata":{"xpack":{"type":"json"},"name":"A1"},"trigger":{"schedule":{"interval":"1m"}},"input":{"search":{"request":{"search_type":"query_then_fetch","indices":["logstash-*"],"types":[],"body":{"size":0,"query":{"match":{"severity":"alert"}}}}}},"condition":{"compare":{"ctx.payload.hits.total":{"gt":0}}},"actions":{"my_webhook":{"webhook":{"scheme":"http","host":"192.168.0.32","port":5601,"method":"post","path":"/api/notification_center/notification","params":{"type":"warning","content":"DFsdgfsdg"},"headers":{"Authorization":"Basic ZWxhc3RpYzphYmNkZTEyMzQ1","Content-type":"application/json","kbn-version":"6.2.3"},"body":"{ \"type\": \"error\", \"content\": \"{{ctx.payload.hits.total}}\" }"}}}}}","statusCode":500,"response":"{"error":{"root_cause":[{"type":"null_pointer_exception","reason":null}],"type":"null_pointer_exception","reason":null},"status":500}"}
at respond (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:295:15)
at checkRespForFailure (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:254:7)
at HttpConnector. (/usr/share/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:159:7)
at IncomingMessage.bound (/usr/share/kibana/node_modules/elasticsearch/node_modules/lodash/dist/lodash.js:729:21)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
This is the error I get on the console when I try to execute any watch.
can you run GET _xpack/watcher/stats and check if watcher is marked as stopped? If so, can you start watcher manually and see if you can run watcher then?
Thanks for reporting back. The error message is confusing though. This will be changed in 6.3 though, as a change about starting/stopping watcher (to reduce the code running in additional threads) will be included.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.