# How to handle overlapping logs with filebeat?

**URL:** <https://discuss.elastic.co/t/how-to-handle-overlapping-logs-with-filebeat/236678>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 11, 2020, 10:35am UTC](https://discuss.elastic.co/t/how-to-handle-overlapping-logs-with-filebeat/236678 "2020-06-11T10:35:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amine\_Maalfi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amine_maalfi/32/62335_2.png) [@Amine\_Maalfi](https://discuss.elastic.co/u/Amine_Maalfi)\
**Post date:** [June 11, 2020, 10:36am UTC](https://discuss.elastic.co/t/how-to-handle-overlapping-logs-with-filebeat/236678/1 "2020-06-11T10:36:00Z")

</div>

Hi everyone  
is there a way to handle overlapping logs with filebeat? here's a sample of what i have:

```
[17/02/2020 07:53:27:748] 00000 I >> message1 (start of event)
[17/02/2020 07:53:27:751] 00000 I @ message2
[17/02/2020 07:53:27:785] 00004 I >> message1 (start of event)
[17/02/2020 07:53:27:787] 00004 I @ message2
[17/02/2020 07:53:27:811] 00004 I < message3
[17/02/2020 07:53:27:812] 00004 I << message4 (end of event)
[17/02/2020 07:53:27:834] 00000 I < message3
[17/02/2020 07:53:27:835] 00000 I << message4 (end of event)

```

an event starts with \>\> and end with \<\< having the same thread number  
thanks in advance!

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [June 12, 2020, 8:00am UTC](https://discuss.elastic.co/t/how-to-handle-overlapping-logs-with-filebeat/236678/2 "2020-06-12T08:00:47Z")

</div>

Hi!

From what I know, I dont think this is possible. Filebeat is a log parser that can [handle multiline logs](https://www.elastic.co/guide/en/beats/filebeat/current/multiline-examples.html) but not in a random order.

C.

---

<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 10, 2020, 8:00am UTC](https://discuss.elastic.co/t/how-to-handle-overlapping-logs-with-filebeat/236678/3 "2020-07-10T08:00:53Z")

</div>

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