# GROUP BY BASED ON MULTIPLE FIELDS

**URL:** <https://discuss.elastic.co/t/group-by-based-on-multiple-fields/273620>\
**Category:** Logstash\
**Created:** [May 21, 2021, 6:37am UTC](https://discuss.elastic.co/t/group-by-based-on-multiple-fields/273620 "2021-05-21T06:37:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keerthika](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@Keerthika](https://discuss.elastic.co/u/Keerthika)\
**Post date:** [May 21, 2021, 6:37am UTC](https://discuss.elastic.co/t/group-by-based-on-multiple-fields/273620/1 "2021-05-21T06:37:58Z")

</div>

Hi.. We need to load the data from Kafka to elastic search using logstash configuration. And also need to group by based on multiple fields (Last 1 hour data only(Millions of data) ) in logstash configuration.

Kindly let me know whether any possibilities to do the group by operation in logstash with example ?

---

<div class="post-metadata">

**Author:** ![Keerthika](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@Keerthika](https://discuss.elastic.co/u/Keerthika)\
**Post date:** [May 24, 2021, 6:03am UTC](https://discuss.elastic.co/t/group-by-based-on-multiple-fields/273620/2 "2021-05-24T06:03:03Z")

</div>

Hi... Good day to all. I have posted a my queries on 3 days ago. But I do not getting a response from anyone. Can you any one let me know need to change the Question format.. ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 24, 2021, 7:53am UTC](https://discuss.elastic.co/t/group-by-based-on-multiple-fields/273620/3 "2021-05-24T07:53:49Z")

</div>

Welcome to our community! 😃

> [@Keerthika](#):
>
> I have posted a my queries on 3 days ago

There's no SLA here and you posted right before a weekend. You might just need to be patient 🙂

---

<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:** [May 24, 2021, 3:05pm UTC](https://discuss.elastic.co/t/group-by-based-on-multiple-fields/273620/4 "2021-05-24T15:05:17Z")

</div>

You may be able to do the grouping you want using an [aggregate](https://www.elastic.co/guide/en/logstash/current/plugins-filters-aggregate.html) filter.

---

<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:** [June 21, 2021, 3:05pm UTC](https://discuss.elastic.co/t/group-by-based-on-multiple-fields/273620/5 "2021-06-21T15:05:52Z")

</div>

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