Creating and Managing Indexes

Clusters of version 7.6.2 or later support index status management. ISM is a plugin that allows you to automate periodic and administrative operations based on changes on the index age, index size, or number of documents. When using the ISM plug-in, you can define policies that automatically handle index rollovers or deletions based on your needs.

The following procedure uses Elasticsearch 7.6.2 as an example. The Kibana UI varies depending on the Kibana version, but their operations are similar.

Creating an Index Policy

  1. Log in to Kibana and choose IM or Index Management on the left. The Index Management page is displayed.
  2. Click Create policy to create an index policy.
  3. Enter a policy ID in the Policy ID text box and enter your policy in the Define policy text box.
    Figure 1 Configuring a policy
  4. Click Create.

Attaching a Policy to an Index

You can attach a policy to one or more indexes and add the policy ID to an index template. When you create indexes using that index template pattern, the policy will be attached to all created indexes.

Managing Index Policies

  1. Click Managed Indices.
  2. If you want to change the policy, click Change policy. For details, see Changing Policies.
  3. To delete a policy, select your policy, and click Remove policy.
  4. To retry a policy, select your policy, and click Retry policy.

For details, see Index State Management.