Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group indices in the index list by template #6

Open
jrgns opened this issue Jun 24, 2018 · 1 comment
Open

Group indices in the index list by template #6

jrgns opened this issue Jun 24, 2018 · 1 comment

Comments

@jrgns
Copy link
Contributor

jrgns commented Jun 24, 2018

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
@jrgns
Copy link
Contributor Author

jrgns commented Jun 24, 2018

@timmles if you're interested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant