Es index management
Index management enables you to view index settings, mappings and statistics, and perform index-level operations. Include refreshing, refreshing, clearing the cache, forcibly merging segments, freezing the index, and so on. Good index management practices help ensure that your data is stored in the most cost-effective way.

Index management can also help you create index templates. When using indexes, templates can reduce the number of bookkeeping. You can automatically create an index from a template instead of setting it manually to ensure that your settings, mappings, and alias definitions are consistent.

To manage your index, please go to Administration > Flexible Search & gt Index Management.

If security is enabled, you must have the right to monitor the cluster view_index_metadata and the right to manage indexes to view the data. For index templates, you must have manage_index_templates cluster permissions. For more information, see Security Permissions.

Before using this function, you should be familiar with the operation of index management. See index management API and index template API.

When you open index management, you will see an overview of the configured indexes. The flag indicates whether the index is frozen, followed by the index, or summarized.

Clicking a label narrows the list to that type of index. You can also use the search bar to filter your index.

You can drill down into each index to investigate index settings, mappings, and statistics. In this view, you can also edit the index settings.

Use the Manage menu to perform index-level operations. This menu is available in the index detail view or when the check boxes of one or more indexes are selected on the overview page. This menu includes the following operations:

An index template defines settings, mappings, and aliases that can be automatically applied when a new index is created. Elasticsearch applies the template to the new index according to the index pattern matching the index name.

The Index Template view lists your templates and allows you to check, edit, clone and delete them. The changes you make to the index template will not affect the existing indexes.

If you don't have any templates, you can use the Create Template Wizard to create one. Index templates are applied during index creation, so you must create templates before creating indexes.

In this example, you will create an index template for a randomly generated log file.

Open the Create Template Wizard and enter logs_template in the Name field. Set the index mode to logstash* so that the template matches any index with that index mode. The merge order and version are optional; in this case, you leave them blank.

The second step of the Create Template Wizard allows you to define index settings. These settings are optional, and this example skips this step.

The log dataset needs to be mapped to mark the latitude and longitude pairs as geographical locations by applying the geo_point type. In the third step of the wizard, define this mapping as follows:

The fourth step is to define an alias logstash.

The template summary is in step 5. If everything is all right, click Create Template.

At this point, you are ready to load the log data using the Elasticsearch index API. In the Kibana console, index two documents:

Automatically configure maps and aliases based on templates. For verification, you can use the index API to view a newly created index.