I wrote a function that returns an ArrayList from an expression passed in a parameter. The function is the first line of a stored script that is called from a watcher.
When testing the watcher that calls this stored script (with the function), it doesn't return at all and eventually times out. Without the function it returns quickly.
Is there anything that would explain this behavior within Kibana painless? The documentation is very light on functions.
There was no problem with the function (below)...we were having other problems which caused the timeout. I'm posting this function because I haven't seen much discussion about kibana script functions in painless, and I've seen a lot of people asking for the Split function.
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.