-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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/Discover/Dashboard] Support for ad-hoc data views #126911
Comments
Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors) |
To keep this compatible with the Lens UI, we need to support ad-hoc data views in Lens (do not pick an existing data view from the list, but create it inline without saving). This has a dependency on @elastic/kibana-app-services as data views have to implement the persistable state interface so they can be embedded as part of a Lens configuration. |
@angorayc Whats the best way for me to get up to speed on how data views are being used by security solution? The request for this feature seems necessitated by the filtering of index patterns (on data views). This likely limits interoperability with other kibana apps. I'd like to make sure I understand this before creating additional functionality. We have flexibility in how we resolve this so I'd like to make sure we're taking the widest view possible before committing to a particular implementation. |
@mattkime , yes, in Security Solution's use cases, our data view allows users to filter index patterns under the given data view, this allow us to have better performance when loading data. However this also brings the inconsistency between Security Solution and other apps like Observability and Lens, as the data view only takes data view id. I understand that we can apply But when open the chart in Lens, they see all the index patterns under the data view id, and they have to go to they query tab to figure out actually video: inspect.mp4 |
Please feel free to visit https://kibana.endpoint.elastic.dev/app/security/hosts/allHosts and play around with the data view. Thank you! |
We have another use case that needs |
Is this another case where you want to use lens? |
@mattkime Yes, Host risk score over time is an example, but we have more charts on Security Solution that consume an index that doesn't exist in Kibana data views. |
@angorayc now Lens supports adhoc dataviews. Does this solve your requirements? Can we close this issue? |
Thanks so much for the help! Using it in our current feature, looking good! |
As Lens embeddable only takes Data View id. Therefore, Lens embeddable is not compatible to the Sourcerer we have on our page, which allows users to filter the index patterns under the data view. So we are not going to replace our existing charts with Lens embeddable, we keep the existing charts and create the chart actions by ourselves.
#126507
security_solution_sourcerer.mp4
In order to keep the consistency of index patterns in Lens, I use
_index
filters to filter out the selected patterns from Security Solution's Sourcerer when open the chart in Lens, save Visualization, and attach to case.Although the query is different from what we have when inspecting on Security Solution's page, this keep the result aligned.
But I'm still hoping that Lens / Lens Embeddable can take index patterns, this will allow Security Solution to use Lens Embeddable on our page with aligned queries and index patterns. We also have a plan to show custom Lens Visualization on Security Solution's page in 8.3 release, the change will empower this feature a lot. Thanks for considering.
_index_filter.mp4
Originally posted by @angorayc in #124792 (comment)
The text was updated successfully, but these errors were encountered: