-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add index.query.default_field
setting to index templates in 6.7
#11187
Comments
Looking briefly at the code we have the logic in place to setup the beats/libbeat/template/template.go Lines 301 to 308 in 265ab8b
This probably mean that we have other beats with the same problem or all of thems? @ruflin I am leaving this with you, feel free to downgrade. |
@ph I was previous pointed to this code which appears to make any keyword, text, or ip field part of the default_field setting: https://github.com/elastic/beats/blob/master/libbeat/template/processor.go#L104 |
Previously default_fields were only enabled for Elasticsearch 7.x. For the migration it is required that also indices from Elasticsearch 6.x have the default_field option set. This enables it for 6.x. Closes elastic#11187
I opened #11205. Please have a look at my comment there and if we all agree it's good to get this in, let's merge. |
Previously default_fields were only enabled for Elasticsearch 7.x. For the migration it is required that also indices from Elasticsearch 6.x have the default_field option set. This enables it for 6.x except 6.0. Closes #11187
Closing as #11205 was merged. |
Related to elastic/kibana#32769 and elastic/elasticsearch#39851
tl;dr: The
index.query.default_field
index setting for index templates is gated for 7.0+. We should add this for 6.7 to support a smoother upgrade process.Metricbeat indices created before Elasticsearch 7.0 are missing the
index.query.default_field
setting which breaks searching those indices without specifying a field to search on (non-qualified searches) in 7.0, a common usage pattern with Kibana's query bar. This setting is currently gated for 7.0 here.Elasticsearch 6.7 will be adding a deprecation warning for any indices with >1024 fields that do not have
index.query.default_field
specified. In Kibana, we will show a button for any of these deprecation warnings that apply to Metricbeat indices that will allow the user to automatically add the setting with the default list of Metricbeat fields that are on new Metricbeat indices. This solves the problem for historical data, but not for newly created indices.I believe this setting should be added to Beats 6.7 to make upgrades smoother. This index setting has existed in Elasticsearch since at least 5.6 so I'm not quite sure why it wasn't added to 6.x Beats originally.
Reasons to do this
From the Kibana side:
From @ruflin on the Beats side:
I believe this should be blocker because it breaks a common experience: using the Kibana search bar on a metricbeat index. If a user has any 6.x metricbeat indices that match their index pattern, after upgrading to 7.0, using the search bar without specifying a field will blow up in Kibana.
The text was updated successfully, but these errors were encountered: