How to visualize a query in kibana

Hi there -- Bucket script aggregations are only available in Kibana when using TSVB visualizations. These two forum posts give some nice examples of how to use it, hopefully it helps point you in the right direction: