Hi @dknecht,
Thanks for taking the time to post here in the forum.
If I understood your problem well and what you want to achieve, you may want to create this script as a separate scripted field. You can perform the same metric aggregation so you get the chart and then you can run a quick search on it from the search bar such as newly_scripted_field > 80.
Wow, that's a pretty old version of Kibana. I think it's 4.x? I'm not sure if this has changed since then, but on current versions of the stack I can query or filter on a number type scripted field.
As @LeeDr points out, I am using 7.5.0 with KQL and it works fine querying the scripted field as I did. Your old version of Kibana doesn't have this capability I believe.
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.