# Add field for a group of events

**URL:** <https://discuss.elastic.co/t/add-field-for-a-group-of-events/127122>\
**Category:** Logstash\
**Created:** [April 6, 2018, 4:04pm UTC](https://discuss.elastic.co/t/add-field-for-a-group-of-events/127122 "2018-04-06T16:04:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![las](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@las](https://discuss.elastic.co/u/las)\
**Post date:** [April 6, 2018, 4:04pm UTC](https://discuss.elastic.co/t/add-field-for-a-group-of-events/127122/1 "2018-04-06T16:04:01Z")

</div>

For a group of events, I want to add a unique identifier. I am using aggregate plugin. The problem is that I don't want additional events from the aggregate filter and I just want to use aggregate for grouping the events but send the original ones with an additional field.

It's very similar to example 4 on the aggregate plugin page but my events are not sequential.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 6, 2018, 6:41pm UTC](https://discuss.elastic.co/t/add-field-for-a-group-of-events/127122/2 "2018-04-06T18:41:08Z")

</div>

What is the grouping of the events based on?

---

<div class="post-metadata">

**Author:** ![las](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@las](https://discuss.elastic.co/u/las)\
**Post date:** [April 6, 2018, 7:44pm UTC](https://discuss.elastic.co/t/add-field-for-a-group-of-events/127122/3 "2018-04-06T19:44:19Z")

</div>

Based on a field

---

<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:** [May 4, 2018, 7:44pm UTC](https://discuss.elastic.co/t/add-field-for-a-group-of-events/127122/4 "2018-05-04T19:44:41Z")

</div>

Closed on May 4, 2018, 7:44pm UTC

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