# How to multiple events into one event in filebeat

**URL:** <https://discuss.elastic.co/t/how-to-multiple-events-into-one-event-in-filebeat/88108>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 2, 2017, 3:33pm UTC](https://discuss.elastic.co/t/how-to-multiple-events-into-one-event-in-filebeat/88108 "2017-06-02T15:33:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pratheek\_k](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@pratheek\_k](https://discuss.elastic.co/u/pratheek_k)\
**Post date:** [June 2, 2017, 3:33pm UTC](https://discuss.elastic.co/t/how-to-multiple-events-into-one-event-in-filebeat/88108/1 "2017-06-02T15:33:42Z")

</div>

I would like to combine multiple events into one event in the filebeat based on a unique string.  
I have the below log:  
June 1st 2017, 11:51:26.992 12345ab AAAAA ClassName:methodName:99 [DEBUG] - Received request:  
June 1st 2017, 11:51:26.993 12345ab AAAAA ClassName:methodName:100 [DEBUG] - request:  
June 1st 2017, 11:51:26.993 12345ab AAAAA ClassName:methodName:100 [DEBUG] - Id: abbababcajdfbjasndflsdlf  
June 1st 2017, 11:51:26.993 12345ab AAAAA ClassName:methodName:100 [DEBUG] - unique id: AAAAA

Now,all the events having AAAAA in it should be combined into one event. How can i configure this.

Thanks

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [June 6, 2017, 9:48am UTC](https://discuss.elastic.co/t/how-to-multiple-events-into-one-event-in-filebeat/88108/2 "2017-06-06T09:48:19Z")

</div>

Sounds like a job for logstash.

---

<div class="post-metadata">

**Author:** ![DongHuang](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@DongHuang](https://discuss.elastic.co/u/DongHuang)\
**Post date:** [June 6, 2017, 9:53am UTC](https://discuss.elastic.co/t/how-to-multiple-events-into-one-event-in-filebeat/88108/3 "2017-06-06T09:53:12Z")

</div>

regular expression

---

<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:** [July 4, 2017, 9:53am UTC](https://discuss.elastic.co/t/how-to-multiple-events-into-one-event-in-filebeat/88108/4 "2017-07-04T09:53:30Z")

</div>

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