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