Skip to content

[Feature Request] Enable Automatic index creation only to predefined templates #19617

@arthurcaccavo

Description

@arthurcaccavo

Is your feature request related to a problem? Please describe

It would be useful to be able to enable the auto_create_index action but only for those that have a defined template, kind of like the dynamic: "strict_allow_templates" from mappings as this really helps preventing human error.

Describe the solution you'd like

The documentation of the action.auto_create_index option defines this option as a boolean. So it can only be either enabled or disabled. A third option allow_template could be added that enables the creation of indexes that match any template.

Related component

Cluster Manager

Describe alternatives you've considered

In ElasticSearch it is possible to provide a comma-separated list of index name patterns to this config, which is not ideal, as it would be necessary to update the configuration whenever a new template is created, but at least allows the behavior.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions