Skip to content

Group indices in the index list by template #6

@jrgns

Description

@jrgns

You can create templates in Elasticsearch that define settings and mappings for newly created indices. These templates are a great way to group indices.

  • Get the templates (and index patterns) using the /_template call. jq pattern keys[] as $k | {name: ($k), patterns: .[$k].index_patterns}
  • Group all indices that don't match a pattern under a single group called Ungrouped
  • Group all the other indices under the name of the template

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions