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

Requests need to account for undefined index pattern title #14267

Closed
jbudz opened this issue Oct 3, 2017 · 1 comment
Closed

Requests need to account for undefined index pattern title #14267

jbudz opened this issue Oct 3, 2017 · 1 comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Operations Team label for Operations Team v5.6.2

Comments

@jbudz
Copy link
Member

jbudz commented Oct 3, 2017

The index pattern _id field used to be the source for the pattern to query elasticsearch. At some point we added a title field to contain the pattern. In 5.6 the .kibana index expects this field to be defined, but older versions of the index may not have it.

Errors include [null_pointer_exception] index must not be null and pattern" fails because ["pattern" is required]. We need to make sure we fall back to the id if a title is not defined.

workaround options:

  • update index patterns to have a title:
POST .kibana/index-pattern/_update_by_query
{
    "script" : {
        "source": "if (ctx._source.title == null) ctx._source.title = ctx._id",
        "lang": "painless"
    }
}
  • deleting and re-adding index patterns in the kibana ui. note this will require any scripted fields or field formatters to be recreated
@jbudz jbudz added Team:Operations Team label for Operations Team bug Fixes for quality problems that affect the customer experience labels Oct 3, 2017
@jbudz
Copy link
Member Author

jbudz commented Oct 4, 2017

Closed by #14302

@jbudz jbudz closed this as completed Oct 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Operations Team label for Operations Team v5.6.2
Projects
None yet
Development

No branches or pull requests

2 participants