# Common fields across indicies

**URL:** <https://discuss.elastic.co/t/common-fields-across-indicies/49807>\
**Category:** Elasticsearch\
**Created:** [May 11, 2016, 5:28pm UTC](https://discuss.elastic.co/t/common-fields-across-indicies/49807 "2016-05-11T17:28:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhughes](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@mhughes](https://discuss.elastic.co/u/mhughes)\
**Post date:** [May 11, 2016, 5:28pm UTC](https://discuss.elastic.co/t/common-fields-across-indicies/49807/1 "2016-05-11T17:28:32Z")

</div>

I have a bunch of different indices but every index has a couple common fields stating where the documents came from: appName, nodeName, etc. The rest of the fields in each index are completely different.

Is there a way to design a single index template that assigns the same mappings to these common fields? Rather than having to create a different template per index type.

---

<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:** [May 12, 2016, 12:41am UTC](https://discuss.elastic.co/t/common-fields-across-indicies/49807/2 "2016-05-12T00:41:50Z")

</div>

You can do this. Do the index names match at all (ie start with the same thing)?

---

<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:52pm UTC](https://discuss.elastic.co/t/common-fields-across-indicies/49807/3 "2017-07-05T22:52:19Z")

</div>


