Hi Is it possible to use an indexed script in the condition field of a watch with the "compare" condition type?
My indexed script does not return a boolean (true/false) but a value which I want to compare to another value in the watch condition.
I know I could do this within the script, but I want to use this script for several watches and would rather not have individual scripts per watch. Please note I do not have inline scripting enabled and this is not an option for security purposes.
the compare condition has nothing to do with scripting - it was created to not have scripting enabled.
The script condition supports indexed scripts. If the value changes, you could access the metadata field in your script, which is configured when creating a watch.
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.