# Multiple field names into single field name in elasticsearch

**URL:** <https://discuss.elastic.co/t/multiple-field-names-into-single-field-name-in-elasticsearch/279237>\
**Category:** Elasticsearch\
**Created:** [July 21, 2021, 8:02am UTC](https://discuss.elastic.co/t/multiple-field-names-into-single-field-name-in-elasticsearch/279237 "2021-07-21T08:02:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandeep\_Raju](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sandeep\_Raju](https://discuss.elastic.co/u/Sandeep_Raju)\
**Post date:** [July 21, 2021, 8:02am UTC](https://discuss.elastic.co/t/multiple-field-names-into-single-field-name-in-elasticsearch/279237/1 "2021-07-21T08:02:52Z")

</div>

Hi all,

I'm working on a project where we need to a field to read multiple field names as same field name.  
Is there a way where we can configure multiple field names into one field using some method?

For example, we have a field "Name". In another index, data field may be "User-Name" and in another index . I want field "General Name" to read both field names "Name" & "User-Name" as same field "General-Name"

Is it possible by having some filters in logstash?

---

<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:** [July 21, 2021, 2:05pm UTC](https://discuss.elastic.co/t/multiple-field-names-into-single-field-name-in-elasticsearch/279237/2 "2021-07-21T14:05:29Z")

</div>

Within Elasticsearch you can take a look at the [Alias field type | Elasticsearch Guide [7.13] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.13/field-alias.html)

you could also have filters in logstash renaming those fields, but that would only apply for newly indexed data.

---

<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:** [August 18, 2021, 2:06pm UTC](https://discuss.elastic.co/t/multiple-field-names-into-single-field-name-in-elasticsearch/279237/3 "2021-08-18T14:06:23Z")

</div>

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