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

index-pattern object new structure in ES 6.x #113

Open
lukas-vlcek opened this issue Sep 24, 2019 · 2 comments
Open

index-pattern object new structure in ES 6.x #113

lukas-vlcek opened this issue Sep 24, 2019 · 2 comments
Labels

Comments

@lukas-vlcek
Copy link
Member

lukas-vlcek commented Sep 24, 2019

Starting with ES 6.x only a single index type is supported. When Kibana creates index pattern it is stored like this:

{
  "_index": ".kibana_1",
  "_type": "doc",
  "_id": "index-pattern:85d641e0-debc-11e9-86f7-e50fa46f6de3",
  "_score": 1.0,
  "_source": {
    "index-pattern": {
      "title": "project*",
      "timeFieldName": "@timestamp",
      "fields": "[{\"name\":\"@timestamp\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},
                 ...
                 {\"name\":\"viaq_msg_id\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true}]"
       },
    "type": "index-pattern",
    "updated_at": "2019-09-24T11:14:50.445Z"
  }
}

Notice:

  1. the document is stored under the doc index type
  2. the index pattern object is nested under the index-pattern field
  3. introduction of the "type": "index-pattern" field
  4. at some point this needs to be reflected in elasticsearch/utils/es_load_kibana_ui_objects script

This is related to #99

@lukas-vlcek lukas-vlcek changed the title index-patter objects require type field in ES 6.x index-patter objects new structure in ES 6.x Sep 24, 2019
@lukas-vlcek lukas-vlcek changed the title index-patter objects new structure in ES 6.x index-pattern object new structure in ES 6.x Sep 24, 2019
@lukas-vlcek
Copy link
Member Author

@ewolinetz do you know if Kibana 6.x can store its objects (like index-patterns) under different type than doc? Could it be _doc, i.e. the same as with indexed documents in indices holding indexed logs?

@ewolinetz
Copy link
Contributor

i believe kibana specifically uses doc for some reason when created with kibana6.
I haven't tested to see if it could use something else, but given when standing up a new index for itself thats what it chooses, it likely needs to be there...

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

2 participants