-
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
[Management] Field properties don't seem to match es API response #9466
Comments
I've tracked this down to the _field_stats api, the query |
I think this is because there is no data in my index for the |
@stacey-gammon the field_stats api does not return anything for fields that are not in the index yet. You need to index at least one document for that field to get information about it using the field_stats API. Maybe a small icon saying that this field is currently empty could help ? |
I think the right fix is for Kibana to use the |
@stacey-gammon |
Our plan way back when was actually to remove the use of the field mapping api completely and rely only on field stats (see step 3 here) so that we wouldn't have to do the messy normalization and de-duplication ourselves. |
Related: elastic/elasticsearch#22438 |
I added the |
I think this is addressed in the change to using field_caps.
@stacey-gammon Can you confirm when you have the chance? |
I have an index with fields
system.fsstat.total_size.free
which is showing up in Kibana, under management, as a field that is not searchable or aggregatable, but when I query es, it doesn't haveindex: false
.Below, compare
system.fsstat.total_size.free
withsystem.filesystem.used.bytes
. Notice.bytes
is searchable and aggregatable but.free
is not.Now compare the es responses from both:
GET metricbeat-2016.11.22/_mapping/metricsets?filter_path=*.mappings.*.properties.system.*.fsstat.*.total_size.properties.free
returns:
and
GET metricbeat-2016.11.22/_mapping/metricsets?filter_path=*.mappings.*.properties.system.*.filesystem.*.used.*.bytes
also returns something very similar:I tried to compare this with a couple new fields I created via
and when querying the mapping via
GET test-index/_mapping/type
, the es response returns:and kibana correctly shows:
@djschny
The text was updated successfully, but these errors were encountered: