# How to copy other index mapping to create a new index?

**URL:** <https://discuss.elastic.co/t/how-to-copy-other-index-mapping-to-create-a-new-index/62022>\
**Category:** Elasticsearch\
**Created:** [October 3, 2016, 4:32am UTC](https://discuss.elastic.co/t/how-to-copy-other-index-mapping-to-create-a-new-index/62022 "2016-10-03T04:32:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattcrawfoord](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@mattcrawfoord](https://discuss.elastic.co/u/mattcrawfoord)\
**Post date:** [October 3, 2016, 4:32am UTC](https://discuss.elastic.co/t/how-to-copy-other-index-mapping-to-create-a-new-index/62022/1 "2016-10-03T04:32:30Z")

</div>

I have a logstash-user-\* index ,I want to create a new index logstash-user2-\* and the new index mapping or any settings the same as logstash-user-\*

What can I do? Thanks!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 3, 2016, 5:47am UTC](https://discuss.elastic.co/t/how-to-copy-other-index-mapping-to-create-a-new-index/62022/2 "2016-10-03T05:47:32Z")

</div>

If you are using Logstash then you probably want to copy/alter the `_template`. Have a look at [https://www.elastic.co/guide/en/elasticsearch/reference/2.4/indices-templates.html#indices-templates](https://www.elastic.co/guide/en/elasticsearch/reference/2.4/indices-templates.html#indices-templates)

---

<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:** [July 5, 2017, 10:15pm UTC](https://discuss.elastic.co/t/how-to-copy-other-index-mapping-to-create-a-new-index/62022/3 "2017-07-05T22:15:32Z")

</div>


