# How can i contact multiple events by a field

**URL:** <https://discuss.elastic.co/t/how-can-i-contact-multiple-events-by-a-field/125879>\
**Category:** Elasticsearch\
**Created:** [March 28, 2018, 7:18am UTC](https://discuss.elastic.co/t/how-can-i-contact-multiple-events-by-a-field/125879 "2018-03-28T07:18:20Z")\
**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 28, 2018, 7:18am UTC](https://discuss.elastic.co/t/how-can-i-contact-multiple-events-by-a-field/125879/1 "2018-03-28T07:18:21Z")

</div>

i have a field named ID ，maybe 3 or 4 events use the same ID for example a field named Result ，it contain four result leave ，cancel ，success ， error， now events [ID:5728][Result:leave],  
[ID:5728][Result:success],[ID:5729][Result:leave],[ID:5729][Result:cancel] then when i statistics ，if result have success ,use success as result , if result have cancel but not success ,use cancel as result , if only have leave , use leave as result, and i want to make a pie to statistical percentage

---

<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 25, 2018, 7:18am UTC](https://discuss.elastic.co/t/how-can-i-contact-multiple-events-by-a-field/125879/2 "2018-04-25T07:18:37Z")

</div>

Closed on April 25, 2018, 7:18am UTC

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