# Multi line Handling of Java Exception Stacktrace

**URL:** <https://discuss.elastic.co/t/multi-line-handling-of-java-exception-stacktrace/135885>\
**Category:** Logstash\
**Created:** [June 14, 2018, 9:39am UTC](https://discuss.elastic.co/t/multi-line-handling-of-java-exception-stacktrace/135885 "2018-06-14T09:39:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandeep\_Singh](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@Sandeep\_Singh](https://discuss.elastic.co/u/Sandeep_Singh)\
**Post date:** [June 14, 2018, 9:39am UTC](https://discuss.elastic.co/t/multi-line-handling-of-java-exception-stacktrace/135885/1 "2018-06-14T09:39:28Z")

</div>

Hi,  
We are using the ELK stack to process logs from Docker containers using Filebeat as the log pusher.  
And we are using json-file default logger for Docker.  
I have tried putting patterns in filebeat configuration, in loghstash filters but nothing is working for me.  
Please if anyone can suggest best way to handle this.  
Thanks.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 14, 2018, 10:00am UTC](https://discuss.elastic.co/t/multi-line-handling-of-java-exception-stacktrace/135885/2 "2018-06-14T10:00:17Z")

</div>

What does the file you want to process look like? IIRC the json-file driver produces a file with one JSON object per line and then you don't need any multiline processing.

---

<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 12, 2018, 10:00am UTC](https://discuss.elastic.co/t/multi-line-handling-of-java-exception-stacktrace/135885/3 "2018-07-12T10:00:21Z")

</div>

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