Skip to content

[FEATURE] Index Template cleanup #312

@petardz

Description

@petardz

Is your feature request related to a problem?
We're using index templates to maintain mappings on all backing indices of index patterns, aliases and datastreams that users are using as input of detector. We need reliable way to delete unused templates.

What solution would you like?
When monitor is deleted do following:

  1. Fetch all Detectors and compile list of all inputs which are either index pattern, alias or datastream
  2. If template doesn't contain any user defined component templates added to it, and no other detector has input which matches template index pattern: delete component and index template

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions