# How can i get the Highest weight or the lastest events

**URL:** <https://discuss.elastic.co/t/how-can-i-get-the-highest-weight-or-the-lastest-events/126197>\
**Category:** Elasticsearch\
**Created:** [March 30, 2018, 7:27am UTC](https://discuss.elastic.co/t/how-can-i-get-the-highest-weight-or-the-lastest-events/126197 "2018-03-30T07:27:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenzilong444](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@chenzilong444](https://discuss.elastic.co/u/chenzilong444)\
**Post date:** [March 30, 2018, 7:27am UTC](https://discuss.elastic.co/t/how-can-i-get-the-highest-weight-or-the-lastest-events/126197/1 "2018-03-30T07:27:43Z")

</div>

i have a field like [ID:result],the same ID have different result just like[5728:success][5728:leave][5729:success][5729:cancel][5729:leave],so how can i get the highest weight under the same ID or the lastest，and i want to make a pie on kibana

---

<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:** [April 27, 2018, 7:27am UTC](https://discuss.elastic.co/t/how-can-i-get-the-highest-weight-or-the-lastest-events/126197/2 "2018-04-27T07:27:47Z")

</div>

Closed on April 27, 2018, 7:27am UTC

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