-
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
Metricbeat Dashboard causes query exception in master/7.0 #5275
Comments
@simianhacker I assume these are the same issues? #5278 |
@ruflin I don't think so... I get that error when searching in Discover as well. |
@elastic/beats This is related to elastic/elasticsearch#26541 which is going to be a problem for Metricbeat. |
I just caught up on some discussion of this in Slack from last week. I just wanted to note that this will still affect users when they switch to kuery since the limit also applies to multi_match queries, which kuery uses under the hood. |
So the fix we decided on last week is to force the admin to add a list of 1024 fields to the index setting |
That won't work for kuery since |
@Bargs Yeah... that's going to be a problem for multi_match. What do you guys put in the fields array now just |
Yep, just |
We hit the same issue as above while running the integration tests on master .
can we be notified when this is fixed? |
@elastic/beats I logged this on Kibana and then found out from the viz team that this is an old bug. elastic/kibana#15863 Just making a note here. |
Tracking issue on the kibana side: elastic/kibana#16232 |
In Elasticsearch 7.0 there is a limit of 1024 fields (see elastic#5275). As Metricbeat exceeds the limit of 1024 fields per index it has to be defined which the default fields are as otherwise Elasticsearch returns an error. This change set the index config option `index.query.default_field`. To fields chosen to be searchable are all string and keyword values as these are the ones that I would expect users to put directly in the search without specifying a field. For all numbers I expect that the exact field is specified. This PR also removes all presets from dashboards which did set default_fields as they were `*`. In Kibana the default `*` was removed also in master: elastic/kibana#16232
In Elasticsearch 7.0 there is a limit of 1024 fields (see #5275). As Metricbeat exceeds the limit of 1024 fields per index it has to be defined which the default fields are as otherwise Elasticsearch returns an error. This change set the index config option `index.query.default_field`. To fields chosen to be searchable are all string and keyword values as these are the ones that I would expect users to put directly in the search without specifying a field. For all numbers I expect that the exact field is specified. This PR also removes all presets from dashboards which did set default_fields as they were `*`. In Kibana the default `*` was removed also in master: elastic/kibana#16232
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
With Elasticsearch/Kibana on master, when running metricbeat with the system module active, opening the Host Overview dashboard leads to an error
"reason":"field expansion matches too many fields, limit: 1024, got: 1030"
The full error, as well as the metricbeat configuration I used can be found here: https://gist.github.com/beniwohli/bb1bfe63ed02480d08025a444d157376
The text was updated successfully, but these errors were encountered: