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

[Lens] Allow filters to be generated from the results of a query, like "greater than 95th percentile" #96154

Closed
wylieconlon opened this issue Apr 2, 2021 · 3 comments
Labels
enhancement New value added to drive a business result Feature:Lens impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@wylieconlon
Copy link
Contributor

wylieconlon commented Apr 2, 2021

This is a use case that came up in the context of multi-pass aggregations, but I recently saw a request in the forums for this same kind of query. We do not need to wait for Elasticsearch feature to implement this, as it can be orchestrated from Lens using the expression pipeline.

The feature should consist of:

  1. The ability to define aggregations that run before the rest of the visualization
  2. A form input or text box that lets you convert the aggregation results into a query

Example use cases:

  • Find the 95th percentile of response_time with an aggregation, and then visualize the geographic locations with unusually high times.
  • Find the most common term in the dataset, and the filter for this term only
  • Find the most recent 500 IDs and use that as a filter, like this discuss question
@wylieconlon wylieconlon added enhancement New value added to drive a business result Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Apr 2, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@stratoula
Copy link
Contributor

Maybe something we can explore with ESQL, I like this as an idea :)

@stratoula stratoula added the impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. label Feb 15, 2023
@timductive
Copy link
Member

This can be done now either with Lens formula or ESQL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Lens impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

4 participants