The periodic index creation function can help users manage the whole life cycle process of index from creation to deletion.
Before executing the periodic index creation task, it is necessary to ensure that there are available index templates.
On the list page, click "Operation - More - Periodic Index Creation" to enter the periodic index creation page, and click "Add" to enter the index task creation page.
Sample index templates created by command line tool:
curl -XPUT localhost:9200/_template/template05 \ -H"Content-Type:application/json" \ -d '{ "index_patterns": ["template05*"] , //Applicable to versions above 6.X, and versions below 6.X should be replaced with "template": "xie-", "settings": { "number_of_shards": 2 }, "mappings": { "_doc": { "_source": { "enabled": false }, "properties": { "name": { "type": "keyword" }, "created_at": { "type": "date", "format": "EEE MMM dd HH:mm:ss Z YYYY" } } } } }'
PUT /_template/my_logs { "index_patterns": ["template05*"] , //Applicable to versions above 6.X, and versions below 6.X should be replaced with "template": "template05*", "order": 1, "settings": { "number_of_shards": 1 }, "mappings": { "_default_": { "_all": { "enabled": false } } }, "aliases": { "last_3_months": {} } }
After adding the task of periodically creating an index, you can modify the task by clicking "Action - Edit". The index prefix, execution period, index suffix, and periodic index deletion can be modified.
After adding or editing the task of periodically creating an index, you can click "Action - Details" to view the basic information and template information of the index task.
After confirming that the periodic task is no longer used, you can delete the it by clicking "Operation - Delete".
我们的产品专家为您找到最合适的产品/解决⽅案
1v1线上咨询获取售前专业咨询
专业产品顾问,随时随地沟通