# Renaming an index

**URL:** <https://discuss.elastic.co/t/renaming-an-index/122134>\
**Category:** Elasticsearch\
**Created:** [March 1, 2018, 5:33pm UTC](https://discuss.elastic.co/t/renaming-an-index/122134 "2018-03-01T17:33:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jchannon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jchannon/32/23280_2.png) [@jchannon](https://discuss.elastic.co/u/jchannon)\
**Post date:** [March 1, 2018, 5:33pm UTC](https://discuss.elastic.co/t/renaming-an-index/122134/1 "2018-03-01T17:33:32Z")

</div>

Hi,

I'm trying to think of a better approach than this (bearing in mind our application and logs and ES is on-prem):

a) Customer sends an `elasticdump` of their data and their indexes will be in the format of `fluend-YYYYMMDD`

b) We use `elasticdump` to import this into our local ES to analyse logs.

c) Call the REINDEX api to rename their indexes CustomerFoo-YYYYMMDD

(As a side note you can call the REINDEX API with a source of `fluentd*` and it will merge all indexes into the destination - [https://www.elastic.co/guide/en/elasticsearch/reference/6.2/docs-reindex.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/docs-reindex.html))

Can anyone think of a better way where they can export their data and we can reimport with a specific index name?

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [March 2, 2018, 1:26am UTC](https://discuss.elastic.co/t/renaming-an-index/122134/2 "2018-03-02T01:26:45Z")

</div>

as i know can't do it rename.  
only copy to new and delete the old..

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 30, 2018, 1:27am UTC](https://discuss.elastic.co/t/renaming-an-index/122134/3 "2018-03-30T01:27:00Z")

</div>

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