Skip to content

Aliases and templates

  • Elasticsearch

Aliases, templates, ILM policies and ingest pipelines live in one panel. Double-click Templates and pipelines in the sidebar to open it. It has a tab per kind, shown only where the cluster has the feature: Aliases, Index templates and Component templates (composable templates, from Elasticsearch 7.8), Legacy templates, ILM policies and Ingest pipelines.

The Aliases tab lists every alias with its index, whether that index is the write index, and whether the alias has a filter or routing. Remove… removes an alias from one index.

  1. Under Add an alias, enter the Alias and the Indices (comma-separated).
  2. Optionally enter a Filter (a query, JSON; optional).
  3. Tick The first index is the write index if writes through the alias should go to the first index.
  4. Choose Add…. Querybara sends an _aliases request.
  1. Under Swap an alias (one atomic step), pick the Alias.
  2. In Move it to, pick the index it should point at.
  3. Choose Swap….

The swap removes the alias from its current indices and adds it to the new one in a single _aliases call, so clients never see the alias missing or pointing at both.

You can also add and remove the aliases of one index from the Aliases tab of its index panel.

The template tabs list each template with a few facts: index patterns, priority or order, the component templates it is composed of, whether it creates a data stream, what it defines, and its version.

  1. Pick a template to edit it, or choose New to start from an example.
  2. Edit the definition. It is the JSON that the template’s PUT request takes.
  3. Choose Save….

Delete… removes the selected template.

Documents Querybara 0.1.1 · built frombc9f5aa