# Multiline / Aggregate Filter Plugin - Mixed & Muddled Log File

**URL:** <https://discuss.elastic.co/t/multiline-aggregate-filter-plugin-mixed-muddled-log-file/153822>\
**Category:** Logstash\
**Created:** [October 24, 2018, 1:53pm UTC](https://discuss.elastic.co/t/multiline-aggregate-filter-plugin-mixed-muddled-log-file/153822 "2018-10-24T13:53:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LloydA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lloyda/32/34788_2.png) [@LloydA](https://discuss.elastic.co/u/LloydA)\
**Post date:** [October 24, 2018, 1:53pm UTC](https://discuss.elastic.co/t/multiline-aggregate-filter-plugin-mixed-muddled-log-file/153822/1 "2018-10-24T13:53:33Z")

</div>

Hi All,

**TL;DR**

Can the Multiline filter plugin handle a log file that has multi-line events occurring concurrently and interweavingly ?

**Explanation**

I have a complex query about multi-line logs that are interwoven with other multi-line logs. Here is a snippet of what this looks like. _Note: In the below snippet, Thread 6 and Thread 7 are running simultaneously_

 ![Logs](https://us1.discourse-cdn.com/elastic/original/3X/0/c/0cab9e45ede9ae5cb9bdc9e18df06e8cd3ed5091.png)

Each time an event occurs, it is logged from start to finish over multiple log lines. However, other events can be happening simultaneously on a different thread. Therefore, the logs get mixed together. Can the Aggregate filter plugin handle interwoven logs of this type? Any feedback will be greatly appreciated.

THANK YOU!

---

<div class="post-metadata">

**Author:** ![b10ceff32eaa771f4be8](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/b10ceff32eaa771f4be8/32/37056_2.png) [@b10ceff32eaa771f4be8](https://discuss.elastic.co/u/b10ceff32eaa771f4be8)\
**Post date:** [October 29, 2018, 4:47pm UTC](https://discuss.elastic.co/t/multiline-aggregate-filter-plugin-mixed-muddled-log-file/153822/2 "2018-10-29T16:47:12Z")

</div>

Hi! Have the same problem. My log looks like:

[29-Oct-2018 15:19:41] WARNING: [pool www] child 28 said into stdout: "{start very big json line"  
[29-Oct-2018 15:19:41] WARNING: [pool www] child 28 said into stdout: "CONTINUE\_MARK continue very big json line"  
[29-Oct-2018 15:19:41] WARNING: [pool www] child 256 said into stdout: "{unexpected json from another worker}"  
[29-Oct-2018 15:19:41] WARNING: [pool www] child 28 said into stdout: "{CONTINUE\_MARK end of very big json line}"

It is php-fpm log, which shows workers events. I can output it in simple format (not in JSON), but how can I aggregate these lines?

---

<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:** [November 26, 2018, 4:47pm UTC](https://discuss.elastic.co/t/multiline-aggregate-filter-plugin-mixed-muddled-log-file/153822/3 "2018-11-26T16:47:14Z")

</div>

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