I was wondering if there is a way to add a runtime field that is only available in a single Kibana visualization. Looking at the runtime field docs it seems possible to add the field at query execution time.
The reason for this is I want to be able to have a somewhat expensive runtime field, but don't want it to be part of an Index Pattern that others will be able to use/see, just part of the singular visualization.
That's not currently possible, but there might be some alternatives for you. You can always use Vega, as allows the full ES search API to be used. You could use a script value for some aggregations in the Aggregation-based visualizations, which is available under the Advanced JSON input.
@wylie thanks for the information I'll take a look at Vega. Would you happen to know if this is planned at all (I wasn't able to find a Kibana issue on it, but I could've just been bad at searching)? Would allow for some much more interesting visualizations without having to go deep into Vega.
I think you're right that there isn't any issue tracking this feature idea, since you're right that the Elasticsearch APIs do support this. I will ask internally to see if I've missed something.
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.