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

Missing field mappings - Increase the default lookBack setting? #6362

Closed
w33ble opened this issue Feb 29, 2016 · 8 comments
Closed

Missing field mappings - Increase the default lookBack setting? #6362

w33ble opened this issue Feb 29, 2016 · 8 comments
Assignees
Labels

Comments

@w33ble
Copy link
Contributor

w33ble commented Feb 29, 2016

When Kibana fetches field mappings for an Index Pattern, not all of the fields show up

This is especially confusing when viewing the query results in Discover, where fields show up, but those same fields don't show up in the index mappings, and refreshing the mappings doesn't help. Because the fields don't exist in the mapping cache, they can't be used to create filters in Discover, or aggs in Visualize.

A few users mentioned this during Elasticon, and it just came up again when chatting with another user. I suspect this happens when a user has a number of indices (say, time-based indices) and not all of the indices have the same fields. One user I spoke to said they had multiple indices and it seemed like the mapping they got back were only the fields that existed in all of the indices.

I haven't yet dug into the issue yet to confirm the cause. I've added "needs details" since this bug needs some more exploration, specifically a confirmed cause and repro steps.

@w33ble w33ble added bug Fixes for quality problems that affect the customer experience feedback_needed P1 labels Feb 29, 2016
@spalger
Copy link
Contributor

spalger commented Feb 29, 2016

Should be fixed by elastic/elasticsearch#12817

@w33ble
Copy link
Contributor Author

w33ble commented Feb 29, 2016

@spalger true. It doesn't appear to have a target set, but it's probably safe to assume we won't see it until 5.x or later. If this is a bug now, it would be good to at least know where the bug is and decide when and how to fix it.

@clintongormley
Copy link
Contributor

See elastic/elasticsearch#15728 instead

@Bargs
Copy link
Contributor

Bargs commented Mar 1, 2016

I don't think this is caused by fields missing from some indices but not others. There's no code here which does that sort of filtering: https://github.com/elastic/kibana/blob/master/src/ui/public/index_patterns/_transform_mapping_into_fields.js

Do you have any idea if the users were using wildcard or timestamp based index patterns? If timestamp based, the missing fields might be explained by an indexPattern:fieldMapping:lookBack value that's too low. Just realized that makes my first statement a bit of a contradiction. I should say I don't think it's caused solely by heterogeneous mappings :)

@w33ble w33ble added discuss and removed bug Fixes for quality problems that affect the customer experience feedback_needed P1 labels Mar 11, 2016
@w33ble
Copy link
Contributor Author

w33ble commented Mar 11, 2016

@Bargs in the case of one user I was working with, this was indeed the problem. They are using daily indices and hadn't indexed data into the field in a while, so it went away and wasn't showing back up. Setting the loopBack higher fixed their issue.

Since I heard about this problem from some other users, I'm going to leave this open in the hopes that others can find this issue and the solution. I'd love some confirmation from more users that a higher loopBack setting fixes their problems too.

Adding the Discuss tag as I wonder if there's a way to make the lookBack more reliable, or if it's at least worth bumping up the default value to maybe 14 or 30, so users are less likely to run in to the problem.

@w33ble w33ble changed the title Missing field mappings across multiple indices Missing field mappings - Increase the default loopBack setting? Mar 11, 2016
@w33ble w33ble changed the title Missing field mappings - Increase the default loopBack setting? Missing field mappings - Increase the default lookBack setting? Mar 11, 2016
@Bargs
Copy link
Contributor

Bargs commented Mar 11, 2016

This issue should be solved by this one #6498

@w33ble
Copy link
Contributor Author

w33ble commented Mar 11, 2016

Indeed, but it might be nice for existing users to bump the default up, and it's a really small change on our part. AFAIK, there shouldn't be any major issues using a number higher than 5.

@w33ble w33ble self-assigned this Dec 19, 2016
@w33ble
Copy link
Contributor Author

w33ble commented Dec 19, 2016

One of the things we really want to do is remove the mapping cache entirely in Kibana, and rely exclusively on the field stats API in Elasticsearch. That's the best solution to this problem, and since there's been literally no community input on this issue, this is probably a really rare edge case issue.

I'm just going to say that we rely on the removal of the mapping cache to fix the problem, so I'm closing this issue.

@w33ble w33ble closed this as completed Dec 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants