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

Limit index pattern field list based on a rule #9503

Closed
tbragin opened this issue Dec 15, 2016 · 4 comments
Closed

Limit index pattern field list based on a rule #9503

tbragin opened this issue Dec 15, 2016 · 4 comments
Labels
Feature:Discover Discover Application release_note:enhancement Team:Beats Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@tbragin
Copy link
Contributor

tbragin commented Dec 15, 2016

The idea behind this came from the beats team. Right now in Metricbeat and in upcoming Filebeat modules they drop the data in a single Elasticsearch index to make sure not too many indices get created. They namespace the fields like module_name.blah.blah.blah. However, for dashboard creation it would be nice to create a "view" on this index that is limited to fields matching pattern "module_name.*" so that metric selection is more sane.

cc: @spalger @Bargs Thoughts?

cc: @tsg @ruflin @monicasarbu

@Bargs
Copy link
Contributor

Bargs commented Dec 15, 2016

Is the main pain point the field select dropdown when building visualizations? I wonder if we could improve the experience simply by enhancing that dropdown to make it searchable.

@spalger
Copy link
Contributor

spalger commented Dec 15, 2016

I fully support giving users more control over the shape of index patterns, but I am a little bit worried about one thing:

I think that right now Kibana communicates/implies that there is a direct correlation between Elasticsearch indices and Kibana index patterns. When we start altering the representation of the index in Kibana, and only Kibana, that correlation starts to break down. Kibana starts to misrepresent elasticsearch indexes.

This is a concern that started to surface in #7402 and I think becomes more of an issue with a change like this.

Do others feel the same way?

@spalger
Copy link
Contributor

spalger commented Dec 15, 2016

Also, its probably fair to say that this is blocked by #3351

@tsg
Copy link
Contributor

tsg commented Dec 15, 2016

I agree that a limiting "view" is probably more than we actually need for a good user experience. For sure #2130 will help a lot already.

In addition, I'd prefer to work towards a solution where we can create smaller index patterns to start with. The reason our index patterns are huge is that they contain all the fields from all the modules. If we would include only the fields from the modules that are actually enabled, then the number of fields would reasonable. We could almost do that today, i.e. when Metricbeat starts, generate the index pattern for Kibana with the enabled modules only and index it to .kibana. But there would be issues if you run two Metricbeat instances with a different set of modules enabled. They would overwrite each other's fields, because there's only one index pattern doc in kibana. If we try to read and merge the doc on the Beats side, there's going to be race conditions.

This could be solvable if Kibana would have some sort of API to "add fields" to an existing index pattern, overwriting duplicate fields. Since we anyway want to have a better way of adding our dashboards/searches/patterns, I think this is an idea worth exploring.

@timroes timroes added Feature:Discover Discover Application Team:Visualizations Visualization editors, elastic-charts and infrastructure and removed :Discovery labels Sep 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Discover Discover Application release_note:enhancement Team:Beats Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

8 participants