-
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
A date field with doc_values: false
makes it impossible for Discover tab to load the data
#11179
Comments
The issue with looking at _source is that we don't know the format of the original data. We could skip requesting date fields without doc_values, but there's some talk of getting rid of that meta data from our index pattern. We'll have to see how that discussion plays out before deciding how to handle this. If you filter out the offending field using Kibana's Source Filter functionality you might be able to avoid the error for now. |
Thanks @Bargs. Looking forward to a fix to this. |
I still see this issue, is it fixed? |
@Bargs Can you give an example of how to exclude a field from source filter? I am having this problem and unable to exclude from the source filter. |
@Bargs This suggestion above sort of helps, however the result is that the field is not shown at all. |
@oleglvovitch I think it depends. Kibana requests the doc_values of your date fields and converts them into your chosen timezone (your browser's local timezone by default). This gives you a consistent view of all your dates so that you're always comparing apples-to-apples. I think most people prefer this. We could probably fall back on the _source value if doc_values don't exist for the field though. |
@Bargs Thank you for a quick response, happy Monday. Just to give you an example - we have a few data streams with multiple date fields. One of them ( It's really difficult to see this behavior as anything other than a bug - I see where this might be coming from (the main timestamp does need to have doc_values), but the current approach demands more from data than you actually need. |
^ this is the main point from my previous message. Let's say you have dates from multiple timezones in your data. It's very convenient to have Kibana translate all of these into a single common timezone so that you can compare all of your dates by eye without having to mentally do timezone conversions every time. Most people do have doc values for their fields, so it's a nice default. But I agree with you, Discover should not throw an error if a date field has no doc_values. Like I said in my last message, we could probably fall back on the _source value if doc_values don't exist for a field. I think that would be a good solution to this issue, do you agree? |
@Bargs Thank you again for the prompt reply. |
Yep, you got it, those come from _source |
Kibana version: 5.5.0 I'm seeing this issue on date fields that do not specify a Mapping:
Going to the Discover tab in Kibana for this index shows a "Courier Fetch: 5 of 60 shards failed." warning message. Log error:
My understanding is that my Please let me know if you need any more information or if my comment should be its own issue. Thank you. |
I am closing this as outdated, since we're not using doc values anymore from 7.12 onward to load date fields, but the new fields options instead. |
Kibana version: 5.3.0
Elasticsearch version: 5.3.0
Description of the problem including expected versus actual behavior:
For an index that has at least one
date
field configured as"doc_values": "false"
and everything else kept with the defaults, Kibana will try to ask for doc_values from alldate
fields. And, of course, for this particular field it will fail and not display anything in the Discover tab. Assuming Kibana is asking for the value of that field for conversion purposes maybe, in this case it would probably be advisable to skip that field or to use source filtering to get it.Steps to reproduce:
Errors in browser (if relevant):
The data will not be loaded and a warning message
Warning Courier Fetch: 1 of 5 shards failed.
will be displayed at the top of the page. Using Google Chrome dev tools I can see Kibana is sending a search request that includes"docvalue_fields":["my_date","foo_date"]
.Provide logs and/or server output (if relevant): ES logs:
The text was updated successfully, but these errors were encountered: