Hi there, I'm trying to build a visualization similar to what saving a search from discover into a dashboard looks like, but am having a hard time figuring out how to get the data I need as input in the visualization. The closest I've come is having a terms aggregation on a uid field, such that every event gets their own row, but I'm stuck on how to pull the remaining fields. I suppose I could add a metric/sub-aggregation for every single one but I was hoping there would be a better way. Ideally I could just get the exact data in json format from a query. (maybe running a query on ES from inside the visualization is the way to go?) Thanks!
Hey @chrisfischer, have you looked into using "Vega" https://www.elastic.co/guide/en/kibana/current/vega-graph.html to create a Visualization? This should give you complete control over the query that is executed against Elasticsearch.
Thanks for the advice! I actually just got it working with callWithRequest.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.