Configure index management for deployment templates
ECE
If you create a deployment template that includes more than one data configuration, you must also specify how Elastic Cloud Enterprise should manage indices for your users when they create their deployments. For time-series use cases such as logging, metrics, and APM, providing a template that enables index management ensures that data is being stored in the most cost-effective way possible as it ages.
Configuring index management is part of the larger task of creating deployment templates or editing them. The choices you make here determine which index management methods are available to your users when they create deployments.
You should configure all index management methods that you want your users to be able to choose from when they create their deployments from your template. You can configure index curation, index lifecycle management, or both.
- Index lifecycle management
- Uses the index lifecycle management feature of the Elastic Stack that provides an integrated and streamlined way to manage time-based data, making it easier to follow best practices for managing your indices. Compared to index curation, ILM gives you more fine-grained control over the lifecycle of each index.
- Index curation (Curator) Stack
-
Creates new indices on hot nodes first and moves them to warm nodes later on, based on the data views (formerly index patterns) you specify. Also manages replica counts for you, so that all shards of an index can fit on the right data nodes. Compared to index lifecycle management, index curation for time-based indices supports only one action, to move indices from nodes on one data configuration to another, but it is more straightforward to set up initially and all setup can be done directly from the Cloud UI.
If your users need to delete indices once they are no longer useful to them, they can run Curator on-premise to manage indices for Elasticsearch clusters hosted on Elastic Cloud Enterprise.
NoteIndex curation has been deprecated in favor of index lifecycle management. For Elastic Stack version 6.7 and later, any deployments using index curation will be prompted to migrate to ILM.
To configure index lifecycle management as part of your deployment template:
On the Index Management page, under index lifecycle management (ILM), specify the node attributes for your data configurations.
Node attributes are simple key-value pairs, such as node_type: hot
, node_type: warm
, and node_type: cold
. These node attributes add defining metadata attributes to each data configuration in your template that tell your users what they can be used for. What you define here should help guide your users when they set up their index lifecycle management policy in Kibana, such as a hot-warm policy.
For each data tier, specify an attribute key-value pair in the Node attributes field, with the key and value separated by a colon. Repeat this process until you have added all the node attributes that you want to be available to your users when they create an index lifecycle policy later on.
Stack
Index curation has been deprecated in favor of index lifecycle management. For Elastic Stack version 6.7 and later, any deployments using index curation will be prompted to migrate to ILM.
To configure index curation as part of your deployment template:
On the Index Management page, under Index curation, click Configure.
Configure index curation by adding an index pattern:
Select the hot data configuration where new indices get created initially.
Select the warm nodes where older indices get moved to later on when they get curated.
Specify which indices get curated by including at least one index pattern.
By default, the pattern is
*
, which means that all indices get curated. For logging use cases, you could specify to curate only thelogstash-*
,metricbeat-*
, orfilebeat-*
data views, for example.Specify the time interval after which indices get curated.
After you have completed these steps, continue with creating your deployment template.