简体   繁体   中英

Elasticsearch rename index

I have an index named "products" and another one named "products_temp". I want to fill the "products_temp" with new products then delete the "products" index and rename the "products_temp" index to "products". Is this possible in Elasticsearch? If it is, what's the recommended approach?

I have to repeat this "products resync" process every day once.

Renaming indices is not possible. Recommended way is to use alias and point that to whatever index you want.

Refer: How to rename indices

it is fully convertible, in your beat.yml configuration on Elastic output you add:

setup.ilm.enabled: false
output.elasticsearch.index: "customname -% {[agent.version]} -% {+ yyyy.MM.dd}"
setup.template.name: "customname"
setup.template.pattern: "customname- *"

Screenshot

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM