Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

advanced query option for building custom aggregations #5282

Closed
yehosef opened this issue Nov 3, 2015 · 5 comments
Closed

advanced query option for building custom aggregations #5282

yehosef opened this issue Nov 3, 2015 · 5 comments
Labels
Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@yehosef
Copy link

yehosef commented Nov 3, 2015

I would like to suggest an advanced query option where a user can put in a raw query and use kibana for visualizing it.

When you build a query, the data comes back in aggregations and sometimes nested aggregations depending on the complexity. But eventually all of that can be represented in a table which is shown with the request/response.

If I could take the columns of that table and define which I want to be the X-axis, which should be the Y axis, which for split chart, which for split bars, etc. I could build my own visualization and even change it (there are sooo many times that I have build a visualization using split chart with multiple filters and then I decide I want instead a split bars and I have to cut and paste the fields, which it's really a small internal change to tell the rendering what to do with the data)

The advantage of this approach is that it would allow people to do more sophisticated queries and aggregations without them needing to be implemented in the query builder. EG, we could also start using pipeline aggregations now, without needed to wait for them to be implemented in Kibana.

As I see it, the visualize tool in Kibana has 3 parts: the query builder, making/receiving/parsing the response, rendering the response. If we can just take out the query builder for certain queries, I think the data will be pretty easy to drop into the pipeline. What'll happen is that the aggregation names instead of being "1" or "2" will be "date" or "num_visits" and the user will need to specify which fields are the X/Y axis, split chart/split bar

@barryhatfield
Copy link

+1

especially for getting started with pipeline aggregations sooner

@yehosef
Copy link
Author

yehosef commented Nov 9, 2015

note - this is possible in grafana. @rashidkpc you can look at how they (unintentionally) support it.

@AlexIoannides
Copy link

+1 maybe start by providing this for metric visualisations?

@spalger spalger added the P3 label Feb 19, 2016
@mathewmeconry
Copy link

+1

@tbragin tbragin added the Feature:Visualizations Generic visualization features (in case no more specific feature label is available) label Nov 15, 2016
@epixa epixa removed the P3 label Apr 25, 2017
@timroes timroes added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Sep 16, 2018
@timroes
Copy link
Contributor

timroes commented Jun 21, 2021

I'll close this in favor of the more recent issues of a JSON query datasource and an expression datasource (which would also allow that, given that we have a esdsl function allowing specification of any query).

@timroes timroes closed this as completed Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

9 participants