# Need hep in pulling nested json log line as seprate line with DPL

**URL:** <https://community.dynatrace.com/t/need-hep-in-pulling-nested-json-log-line-as-seprate-line-with-dpl/55450>\
**Category:** DQL\
**Tags:** dql, dpl\
**Created:** [April 2, 2026, 8:03am UTC](https://community.dynatrace.com/t/need-hep-in-pulling-nested-json-log-line-as-seprate-line-with-dpl/55450 "2026-04-02T08:03:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dest-Roh](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@Dest-Roh](https://community.dynatrace.com/u/Dest-Roh)\
**Post date:** [April 2, 2026, 8:03am UTC](https://community.dynatrace.com/t/need-hep-in-pulling-nested-json-log-line-as-seprate-line-with-dpl/55450/1 "2026-04-02T08:03:14Z")

</div>

Hi Team i need an help in converting below nested json to multiple lines in log processing rule with DPL syntax but unfortunately i am&nbsp; unable to pull all record.

Additinalinfo:  
DATA DETAILS:  
{ “Report”:[{“SessionID”:300,“BlockingSessionID”:821,“BlockedSessionCount”:0,“Status”:“suspended”,“OpenTranCount”:0,“HostName”:“xyx”,“DBName”:“xyz”,“StartTime”:“2026-04-01T13:24:23.003”},  
{“SessionID”:300,“BlockingSessionID”:821,“BlockedSessionCount”:0,“Status”:“suspended”,“OpenTranCount”:0,“HostName”:“mmy”,“DBName”:“abc”,“StartTime”:“2026-04-01T13:24:23.003”},  
{“SessionID”:300,“BlockingSessionID”:821,“BlockedSessionCount”:0,“Status”:“suspended”,“OpenTranCount”:0,“HostName”:“wwe”,“DBName”:“tzt”,“StartTime”:“2026-04-01T13:24:23.003”}]}

the numbers of record may increase so DPL should be dynamic to keep that new nested lines as new record from json

---

<div class="post-metadata">

**Author:** ![MaximilianoML](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/maximilianoml/32/25038_2.png) [@MaximilianoML](https://community.dynatrace.com/u/MaximilianoML)\
**Post date:** [April 2, 2026, 8:35am UTC](https://community.dynatrace.com/t/need-hep-in-pulling-nested-json-log-line-as-seprate-line-with-dpl/55450/2 "2026-04-02T08:35:17Z")

</div>

Hello&nbsp;[@Dest-Roh](https://community.dynatrace.com/user/85903)

Let’s me try to help you in this one,

I’m not sure if I understood correctly but what you want here it’ll&nbsp;only map to a single Dynatrace log record, and looking into the data you put you have more than one log in the record. Anyway, the DPL should be something like this bellow:

```javascript
(BOF '[')?
JSON_OBJECT{
  LONG+:SessionID,
  LONG:BlockingSessionID,
  LONG:BlockedSessionCount,
  STRING:Status,
  LONG:OpenTranCount,
  STRING:HostName,
  STRING:DBName,
  TIMESTAMP("yyyy-MM-dd'T'HH:mm:ss.SSS"):StartTime
}:record ','?
(']' EOF)?

```

I would say that the best approach is to&nbsp;split the payload before ingestion, so each Report item is sent as its own log record. This subject isn’t my strongest point, maybe someone else could add more info here.

---

<div class="post-metadata">

**Author:** ![Dest-Roh](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@Dest-Roh](https://community.dynatrace.com/u/Dest-Roh)\
**Post date:** [April 2, 2026, 10:43am UTC](https://community.dynatrace.com/t/need-hep-in-pulling-nested-json-log-line-as-seprate-line-with-dpl/55450/3 "2026-04-02T10:43:23Z")

</div>

This logic is able to pull the first record only but other record separated by comma its not picking UP {[{record1},{record2},{record3}]}

Need to seperate as

{Record1}

{Record2}

{Record3}

---

<div class="post-metadata">

**Author:** ![MaximilianoML](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/maximilianoml/32/25038_2.png) [@MaximilianoML](https://community.dynatrace.com/u/MaximilianoML)\
**Post date:** [April 2, 2026, 10:59am UTC](https://community.dynatrace.com/t/need-hep-in-pulling-nested-json-log-line-as-seprate-line-with-dpl/55450/4 "2026-04-02T10:59:49Z")

</div>

Humm… Okay.

Maybe this one, now ChatGPT is helping me:

```markup
(BOF '{' SPACE? '"Report"' SPACE? ':' SPACE? '[')?

JSON_OBJECT{
  LONG+:SessionID,
  LONG:BlockingSessionID,
  LONG:BlockedSessionCount,
  STRING:Status,
  LONG:OpenTranCount,
  STRING:HostName,
  STRING:DBName,
  TIMESTAMP("yyyy-MM-dd'T'HH:mm:ss.SSS"):StartTime
}:record ','?

(']' SPACE? '}' EOF)?

```

---

<div class="post-metadata">

**Author:** ![krzysztof\_hoja](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/krzysztof_hoja/32/34625_2.png) [@krzysztof\_hoja](https://community.dynatrace.com/u/krzysztof_hoja)\
**Post date:** [April 3, 2026, 5:53am UTC](https://community.dynatrace.com/t/need-hep-in-pulling-nested-json-log-line-as-seprate-line-with-dpl/55450/5 "2026-04-03T05:53:46Z")

</div>

Unfortunalty it is not possible to do just with DPL. You need _ **expand** _ from DQL to do this transformation:

```markup
data record(content="""{ "Report":[{"SessionID":300,"BlockingSessionID":821,"BlockedSessionCount":0,"Status":"suspended","OpenTranCount":0,"HostName":"xyx","DBName":"xyz","StartTime":"2026-04-01T13:24:23.003"},
{"SessionID":300,"BlockingSessionID":821,"BlockedSessionCount":0,"Status":"suspended","OpenTranCount":0,"HostName":"mmy","DBName":"abc","StartTime":"2026-04-01T13:24:23.003"},
{"SessionID":300,"BlockingSessionID":821,"BlockedSessionCount":0,"Status":"suspended","OpenTranCount":0,"HostName":"wwe","DBName":"tzt","StartTime":"2026-04-01T13:24:23.003"}]} """)
| parse content, """JSON:record"""
| expand record=record[Report]
| fields record

```
