Kibana: Kibana Unable to set index pattern for Alias

Created on 13 Feb 2018  路  9Comments  路  Source: elastic/kibana

Kibana version: 6.2.1

Elasticsearch version: 6.2.1

Server OS version: Centos 7

Browser version: Chrome Version 63.0.3239.132 (Official Build) (64-bit)

Browser OS version: Windows 10 16299.192

Original install method (e.g. download page, yum, from source, etc.): Yum

Description of the problem including expected versus actual behavior:

When attempting to create a kibana index pattern from an alias, next step is greyed out.

6.1.x works just fine,
6.2.1 (tested) does not work.

Steps to reproduce:

  1. Copy and paste test:
PUT test1

PUT test2

PUT test3

PUT test4


POST /test1/doc
{
  "message" : "woza"
}

POST /test2/doc
{
  "message" : "woza"
}

POST /test3/doc
{
  "message" : "woza"
}

POST /test4/doc
{
  "message" : "woza"
}

POST /_aliases
{
    "actions" : [
        { "add" : { "index" : "test1", "alias" : "alias1" } },
        { "add" : { "index" : "test2", "alias" : "alias1" } },
        { "add" : { "index" : "test3", "alias" : "alias1" } },
        { "add" : { "index" : "test4", "alias" : "alias1" } }
    ]
}

6.2.x reproduction
62reproduction

6.1.x No Reproduction
61x notabletoreproduce

Errors in browser console (if relevant): No Errors in browser seen

Index Patterns PR sent AppServices bug regression

Most helpful comment

Another work-around...

PUT .kibana/doc/index-pattern:<alias>
{
    "index-pattern": {
      "timeFieldName": "<field-name",
      "title": "<alias>"
    },
    "type": "index-pattern"
}

All 9 comments

Just a note about a work-around we think would work for this case.

  1. Install Kibana 6.1.x (latest) along side your Kibana 6.2.x (they use the same .kibana index)
  2. Create the index pattern for your alias in Kibana 6.1.x
  3. Refresh your 6.2.x Kibana browser on index patterns and you should have it there and usable

Another work-around...

PUT .kibana/doc/index-pattern:<alias>
{
    "index-pattern": {
      "timeFieldName": "<field-name",
      "title": "<alias>"
    },
    "type": "index-pattern"
}

Does this work for 6.2.2? I can't seem to make it work.
Thanks.

@seanziee @LeeDr 's workaround should work for now and we have a fix slated for 6.3. See #16715

Just tried this with elasticsearch-oss:6.4.3, kibana-oss:6.4.3.

GET _alias 
{
  "associations-new": {
    "aliases": {
      "associations": {}
    }
  }
}

Expected alias to appear. It doesn't?

image

@andrewkcarter Can you clarify what that means? I'm able to reproduce the steps for our setup running 6.5.X.

I was able to create the index pattern with a downgraded version (running 6.1.X locally), and see results on the discover page. However when using the 6.5.X instance the same index pattern returns no results.

@justinwalz I think my comment was a mistake, and should have been posted on a completely separate issue. Sorry for the confusion!

I've removed it.

Oh, no problem, thanks for clearing that up @andrewkcarter.

I guess I should ask @chrisronline, the PR owner. Similar question to my above comment, should this be fixed in 6.5.X?

Thx for the answer. It worked.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

timroes picture timroes  路  3Comments

snide picture snide  路  3Comments

cafuego picture cafuego  路  3Comments

LukeMathWalker picture LukeMathWalker  路  3Comments

treussart picture treussart  路  3Comments