# Parse Multiline Log

**URL:** <https://community.dynatrace.com/t/parse-multiline-log/42614>\
**Category:** DQL\
**Tags:** dql\
**Created:** [November 14, 2023, 3:16pm UTC](https://community.dynatrace.com/t/parse-multiline-log/42614 "2023-11-14T15:16:06Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![MarcioKaue](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@MarcioKaue](https://community.dynatrace.com/u/MarcioKaue)\
**Post date:** [November 14, 2023, 3:16pm UTC](https://community.dynatrace.com/t/parse-multiline-log/42614/1 "2023-11-14T15:16:06Z")

</div>

Hello,

We are facing a problem parsing log lines where we understand that the root cause is due to the data being multiline.

Below is an example log:

_2023-02-31 11:51:28,988 - INFO - Prediction Output: class0\_proba=0.00 class1\_proba=0.00_  
_INFO: 0.0.0.0:12345 - “POST /api/v1/model/string/predict HTTP/1.1” 200 OK_

We would like to parse the Status Code information but it is not being effective:

_fetch logs_  
_| filter contains(content, “POST”)_  
_| parse content, “LD 'HTTP/1.1\”’ LD:httpcode "_

In a log that is not multiline this parse works correctly. Does anyone have any idea how we can extract this information?

---

_[View the full topic](https://community.dynatrace.com/t/parse-multiline-log/42614)._
