# Coalesce field values together

**URL:** <https://discuss.elastic.co/t/coalesce-field-values-together/242378>\
**Category:** Kibana\
**Created:** [July 23, 2020, 5:06pm UTC](https://discuss.elastic.co/t/coalesce-field-values-together/242378 "2020-07-23T17:06:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![surjray](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@surjray](https://discuss.elastic.co/u/surjray)\
**Post date:** [July 23, 2020, 5:06pm UTC](https://discuss.elastic.co/t/coalesce-field-values-together/242378/1 "2020-07-23T17:06:19Z")

</div>

Is there a way to coalesce field content values into one value so that when we visualize in Kibana it shows up as one value, e.g. Say I have a field that has several values, 2 of them being system\_test, and system\_Test. Is there a way to put them together so that in Kibana the field will show a single value category system\_Test (containing the items for both system\_test and system\_Test) ?  
Thanking you.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [July 24, 2020, 12:33am UTC](https://discuss.elastic.co/t/coalesce-field-values-together/242378/2 "2020-07-24T00:33:27Z")

</div>

> Is there a way to coalesce field content values into one value

Yes, create a [scripted field](https://www.elastic.co/guide/en/kibana/current/scripted-fields.html) that merges the two fields into a single field

---

<div class="post-metadata">

**Author:** ![surjray](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@surjray](https://discuss.elastic.co/u/surjray)\
**Post date:** [August 4, 2020, 4:44pm UTC](https://discuss.elastic.co/t/coalesce-field-values-together/242378/3 "2020-08-04T16:44:24Z")

</div>

Thank you @Nathan_Reese for your response. If you can please give me a short snippet or example of merging two fields into a single fields to create a scripted field that will be awesome!  
Thanking you.

---

<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:** [September 1, 2020, 4:44pm UTC](https://discuss.elastic.co/t/coalesce-field-values-together/242378/4 "2020-09-01T16:44:27Z")

</div>

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