Hey @martin_edge, welcome to the discussion boards!
Which version of Kibana are you using? Your issue sounds similar to https://github.com/elastic/kibana/issues/48480, although that linked issue mentions an error message being returned, and it doesn't sound like that's the case here. Are you seeing an error at all, or is it just not working as expected?
I've found the problem: the script was returning null for some documents and it made the Kibana call fail silently. After making sure that the scripted field never returns null, everything seems to work as expected.
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.