In elasticsearch 5.4.2 can merge indexs?


(andy_zhou) #1

in elasticsearch 5.4.2 can merge indexs?
in my env , have so match shards, can merge indexs to only,
the shards can't have so match data.


(Mark Walkom) #2

You can _shrink indices to have less shards, but you cannot merge/shrink separate indices into one with the same API.

You could reindex (eg) daily into weekly/monthly though.


(andy_zhou) #3

shrink can ones do many indexs?
link:

  • curl -XPOST 'xxx.xx.xx.xx:9200/system-log-61-2017.08*/_shrink/system-log-61-2017.08?pretty'

can give me a example about reindex daily into weekly/monthly about the exist indexs?


(Mark Walkom) #4

Shrink is here - https://www.elastic.co/guide/en/elasticsearch/reference/5.5/indices-shrink-index.html

Reindex is here - https://www.elastic.co/guide/en/elasticsearch/reference/5.5/docs-reindex.html. There a chapter on reindexing daily indices as well :slight_smile:


(system) #6

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.