Skip to content

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

@lukas-vlcek

Description

@lukas-vlcek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions