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

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

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.