Skip to content

Add index template v2 and component template support to Index Management app #64771

@matt-davis-elastic

Description

@matt-davis-elastic

Elasticsearch is adding a new version of index templates to support data streams. There are a few changes between v1 and v2.

What are index templates?

elastic/elasticsearch#53101

What is different between V1 and V2?

URL changes - The API endpoint for index templates v2 is /_index_template.

There is a new simulate index template API located at /_index_template/_simulate_index/{index}

With the addition of component templates, there is a new endpoint located at /_component_template

JSON Structure changes - There is a new template JSON object which contains the settings, mappings, and aliases objects.

There are 2 new optional parameters priority and composed_of.
Of all the templates that match the index pattern, the one with the highest priority will be applied.

The composed_of setting is a string array with the names of component templates that will be applied.

Component templates JSON will have 3 fields that follow the same format as in the index template. The three fields are template, version, and _meta.

Metadata

Metadata

Assignees

No one assigned

    Labels

    MetaTeam:Kibana ManagementDev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t//

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions