-
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
Sample data for Kibana #10813
Comments
Permissions for ingestion are the hard part here. Without an access control model in Kibana, we need rely on passing through Kibana user credentials to all ES requests, and the default x-pack security role for Kibana users does not include the ability to manage indices since those are pretty sensitive operations. This effectively rules out sample data ingested via human intervention via the UI itself, which makes a pretty big impact on the value here. |
@epixa If we simply ship a default dataset in a predefined Elasticsearch index and a sample Kibana dashboard, does that resolve the need to worry about permissions for ingestion? I thought this is where we landed last time we talked with @uboness @jimgoodwin and others. |
@tbragin What do you mean by "ship a default dataset in a predefined Elasticsearch index"? |
Basically, ship the data with the stack, as opposed to on-demand download and index it. I think this is what Option 1 suggests. |
So custom builds of Elasticsearch that include a custom data directory with the relevant indices/documents? |
Option 2 is the ideal as far as I’m concerned… and also note that it’s not just about sample data, it may come with a bunch of predefined dashboards, saved searches, visualizations, etc... We’ve been discussing that if we had such a feature, we could take all the EDEN demos and fold it in there - effectively granting access to everyone to the use-case repository that maintain.
That said, we need to think this thoroughly, and better understand the work required to implement this (also think the security implication of having this feature).
Assuming Option 2 takes a long time to implement (which is just an assumption at this point) I’m not against Option 1 at all as an intermediate solution that later we can migrate to Option 2. That said, I’m not sure about the multiple or extra distributions for this purpose. Personally I wouldn’t mind adding this to our current build and have a simple link in the landing page that says “Load sample data and dashboards” (we can keep it small enough to effectively make little impact on bundle size).
|
I suspect this feature is most valuable for people who have downloaded Kibana for the first time and just want to quickly play around with it to see what it's all about. In this situation they either have no security or they're probably logged in as the admin user. Couldn't we just show them this page if there's no security or they have index creation privileges? |
@uboness this might be the best approach for a first phase. It's a nice blend between options 1 and 2. We prepackage one "data source" that is already indexed in ES. In Kibana, we provide a landing page and / or quick link that simply creates an index pattern, visualizations and dashboards. I see one potential issue with this. Ideally that link or button would need to be conditional based on whether or not the pre-defined index is available. Users could have manually removed this index or are using an older version of ES that did not have this sample data pre-packaged. Otherwise, we introduce another error during the getting started experience. I also agree with @Bargs comment on showing / hiding a sample data source landing page (Eden-esque options) based on permissions. |
We should pursue a better getting started experience regardless of what other plugins people have installed rather than assuming what situation a person may be in. I'm sure we can come up with a good solution here that works regardless of what plugins are installed though.
This seems OK to me. If the data doesn't exist, we don't show the getting started guide. We can even have people close the index as a way of "turning off" the getting started guide. This addresses the security concerns as well since it only shows up when you have permission to access the sample index. Older versions of Elasticsearch shouldn't be an issue because Kibana can only run against the same version or above. The biggest concern I have is the notion of bundling data into Elasticsearch by default for the sake of Kibana. That's a level of reverse coupling that we haven't really done before. |
@epixa Perhaps I'm missing something but why couldn't we bundle the data with Kibana, not Elasticsearch? I'm imagining a Kibana server-side API that would load this data from disk (on the Kibana server) and call the ES bulk API to load it into a
What about augmenting the |
One of the fastest ways to begin your journey with Kibana is to utilize sample data, dashboards and visualizations in order to familiarize yourself with the workflows and capabilities that the UI offers. We should give the user the option to use generic sample data when loading Kibana for the first time or whenever they'd like. As I see it, there are two approaches we can take.
Option 1 would be easiest to implement
Option 2 allows a user to be more flexible but would require more work to implement
Sample data is crucial to improving the getting started experience for Kibana. We could either agree on an approach and execute or treat these as phases. Once discussed in more detail, we'll update the issue accordingly
The text was updated successfully, but these errors were encountered: