# Copy template from elastic to elastic

**URL:** <https://discuss.elastic.co/t/copy-template-from-elastic-to-elastic/104895>\
**Category:** Elasticsearch\
**Created:** [October 23, 2017, 12:40pm UTC](https://discuss.elastic.co/t/copy-template-from-elastic-to-elastic/104895 "2017-10-23T12:40:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomer](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@tomer](https://discuss.elastic.co/u/tomer)\
**Post date:** [October 23, 2017, 12:40pm UTC](https://discuss.elastic.co/t/copy-template-from-elastic-to-elastic/104895/1 "2017-10-23T12:40:50Z")

</div>

Hi,

I have a template on one machine and want the same exact template copied into my other ES.

Help will be amazing!

Here is the template (sorry it's in a pic. and not text I can't ctl+c/ctl+p from this machine) :

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/f/df49d7a47c400f6c804016711998f935dd7da8b7.png)

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 23, 2017, 12:55pm UTC](https://discuss.elastic.co/t/copy-template-from-elastic-to-elastic/104895/2 "2017-10-23T12:55:13Z")

</div>

you can retrieve concrete templates from the one cluster using the [get template API](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/indices-templates.html#getting) and then use that output and put the template into your new cluster.

There is no automatic step to do this.

---

<div class="post-metadata">

**Author:** ![tomer](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@tomer](https://discuss.elastic.co/u/tomer)\
**Post date:** [October 23, 2017, 12:57pm UTC](https://discuss.elastic.co/t/copy-template-from-elastic-to-elastic/104895/3 "2017-10-23T12:57:51Z")

</div>

> [@Make a copy of a document (index template)](https://discuss.elastic.co/t/make-a-copy-of-a-document-index-template/25187):
>
> Hi, I want to make a copy of a document. How can I do that? My main interest is to create a index template similar to logstash-.\* So, I would like to copy the template into another duplicate template. Can you please suggest how can I do this.

---

<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:** [November 20, 2017, 12:58pm UTC](https://discuss.elastic.co/t/copy-template-from-elastic-to-elastic/104895/4 "2017-11-20T12:58:13Z")

</div>

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