# How to aggregate two events？

**URL:** https://discuss.elastic.co/t/how-to-aggregate-two-events/197647
**Category:** Logstash
**Created:** [September 2, 2019, 6:13am UTC](https://discuss.elastic.co/t/how-to-aggregate-two-events/197647 "2019-09-02T06:13:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![wzxmt\_l](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wzxmt_l/32/46888_2.png) [@wzxmt\_l](https://discuss.elastic.co/u/wzxmt_l)
#### Post date: [September 2, 2019, 6:13am UTC](https://discuss.elastic.co/t/how-to-aggregate-two-events/197647/1 "2019-09-02T06:13:27Z")

</div>

hi !  
I need your help?How to aggregate two different events together, they only have one associated field message\_id; I want to aggregate two events with the same message\_id, but I can't understand how to configure it! what should I do?

---

<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 30, 2019, 6:25am UTC](https://discuss.elastic.co/t/how-to-aggregate-two-events/197647/2 "2019-09-30T06:25:09Z")

</div>

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