# Can I merge duplicate record and show it as a one record or document

**URL:** https://discuss.elastic.co/t/can-i-merge-duplicate-record-and-show-it-as-a-one-record-or-document/45995
**Category:** Logstash
**Created:** [March 31, 2016, 9:06pm UTC](https://discuss.elastic.co/t/can-i-merge-duplicate-record-and-show-it-as-a-one-record-or-document/45995 "2016-03-31T21:06:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)
#### Post date: [March 31, 2016, 9:06pm UTC](https://discuss.elastic.co/t/can-i-merge-duplicate-record-and-show-it-as-a-one-record-or-document/45995/1 "2016-03-31T21:06:43Z")

</div>

Hi Experts,

I can see following in elasticsearch index

ID Name Marks  
1 vik 10  
2 vik 10  
3 vik 10  
4 gop 20  
5 fall 20

I want to have something like

ID Name Marks  
1 vik 10  
4 gop 20  
5 fall 20

So I want to merge 1,2,3 into one record , is it possible with LS 1.5.4 ? I asked it with a very basic example actually I have a very huge message which has around 180 fields in it , 90% of the key and the values are same except date values so is this approach applies to such huge messages as well ?

Regards  
Vikas

---

<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: [March 31, 2016, 9:09pm UTC](https://discuss.elastic.co/t/can-i-merge-duplicate-record-and-show-it-as-a-one-record-or-document/45995/2 "2016-03-31T21:09:50Z")

</div>

[https://www.elastic.co/guide/en/logstash/current/plugins-filters-aggregate.html](https://www.elastic.co/guide/en/logstash/current/plugins-filters-aggregate.html)

Also I'd strongly suggest you become familiar with the docs, a lot of the questions you ask can be answered by looking at them first.

---

<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 6, 2017, 5:04am UTC](https://discuss.elastic.co/t/can-i-merge-duplicate-record-and-show-it-as-a-one-record-or-document/45995/3 "2017-07-06T05:04:26Z")

</div>


