I installed watcher and giving the condition. While giving the condition its giving me error that...
{"error":"WatcherException[failed to put watch [log_error_watch]]; nested: ScriptConditionValidationException[failed to compile script [return ctx.payload.hits.total > 5] with lang [groovy] of type [INLINE]]; nested: ScriptException[dynamic scripting for [groovy] disabled]; ","status":500}
Its giving me error that it is disabled. i added a line in elasticsearch.yml to enable dynamic scripting. Now im getting another error.
{"error":"WatcherException[failed to put watch [log_error_watch]]; nested: StrictDynamicMappingException[mapping set to strict, dynamic introduction of [_status] within [watch] is not allowed]; ","status":500}
I deleted everything history of watcher. I installed watcher again and i have given condition.. but im getting error like this..
{"error":"WatcherException[failed to put watch [error_status]]; nested: StrictDynamicMappingException[mapping set to strict, dynamic introduction of [_status] within [watch] is not allowed]; ","status":500}
Its saying mapping set to strict. I enabled dynamic scripting in elasticsearch.yml..
Please help me.. and another thing i'm unable to delete .watches index.
After you uninstalled Watcher, did you restart Elasticsearch? Please verify that you uninstalled Watcher on all nodes and restarted each of them.
If you are running this in development, on your local workstation/laptop, be aware that you may have multiple ES instances running, so ensure they have all stopped before trying to delete the .watches index.
Note that we will be updating the upgrade instructions to make this more clear in the future.
After restarting elasticsearch, .watches index is deleted. Thanq for the help. But, im not getting the mail eventhough i given the condition.
My condition is:
I'm glad that restarting ES solved the issue - the docs are now updated to make this more clear.
Every time the watch triggers - every 5s in your case - Watcher will record a watch history entry for the watch. The watch history entry contains all the metadata from the watch execution. Can you retrieve the most recent watch history entry for this watch, and share it (santized) here?
You configure the accounts Watcher can use to send email in your elasticsearch.yml configuration file. Please check if the email settings are correct (refer the link below) and as advised in previous post, can you also retrieve the most recent watch history entry for this watch, and share it (santized) here?
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.