<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Need hep in pulling nested json log line as seprate line with DPL in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Need-hep-in-pulling-nested-json-log-line-as-seprate-line-with/m-p/297174#M3247</link>
    <description>&lt;P&gt;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&amp;nbsp; unable to pull all record.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additinalinfo:&lt;BR /&gt;DATA DETAILS:&lt;BR /&gt;{ "Report":[{"SessionID":300,"BlockingSessionID":821,"BlockedSessionCount":0,"Status":"suspended","OpenTranCount":0,"HostName":"xyx","DBName":"xyz","StartTime":"2026-04-01T13:24:23.003"},&lt;BR /&gt;{"SessionID":300,"BlockingSessionID":821,"BlockedSessionCount":0,"Status":"suspended","OpenTranCount":0,"HostName":"mmy","DBName":"abc","StartTime":"2026-04-01T13:24:23.003"},&lt;BR /&gt;{"SessionID":300,"BlockingSessionID":821,"BlockedSessionCount":0,"Status":"suspended","OpenTranCount":0,"HostName":"wwe","DBName":"tzt","StartTime":"2026-04-01T13:24:23.003"}]}&lt;/P&gt;
&lt;P&gt;the numbers of record may increase so DPL should be dynamic to keep that new nested lines as new record from json&lt;/P&gt;</description>
    <pubDate>Fri, 03 Apr 2026 09:26:51 GMT</pubDate>
    <dc:creator>Dest-Roh</dc:creator>
    <dc:date>2026-04-03T09:26:51Z</dc:date>
    <item>
      <title>Need hep in pulling nested json log line as seprate line with DPL</title>
      <link>https://community.dynatrace.com/t5/DQL/Need-hep-in-pulling-nested-json-log-line-as-seprate-line-with/m-p/297174#M3247</link>
      <description>&lt;P&gt;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&amp;nbsp; unable to pull all record.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additinalinfo:&lt;BR /&gt;DATA DETAILS:&lt;BR /&gt;{ "Report":[{"SessionID":300,"BlockingSessionID":821,"BlockedSessionCount":0,"Status":"suspended","OpenTranCount":0,"HostName":"xyx","DBName":"xyz","StartTime":"2026-04-01T13:24:23.003"},&lt;BR /&gt;{"SessionID":300,"BlockingSessionID":821,"BlockedSessionCount":0,"Status":"suspended","OpenTranCount":0,"HostName":"mmy","DBName":"abc","StartTime":"2026-04-01T13:24:23.003"},&lt;BR /&gt;{"SessionID":300,"BlockingSessionID":821,"BlockedSessionCount":0,"Status":"suspended","OpenTranCount":0,"HostName":"wwe","DBName":"tzt","StartTime":"2026-04-01T13:24:23.003"}]}&lt;/P&gt;
&lt;P&gt;the numbers of record may increase so DPL should be dynamic to keep that new nested lines as new record from json&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2026 09:26:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Need-hep-in-pulling-nested-json-log-line-as-seprate-line-with/m-p/297174#M3247</guid>
      <dc:creator>Dest-Roh</dc:creator>
      <dc:date>2026-04-03T09:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need hep in pulling nested json log line as seprate line with DPL</title>
      <link>https://community.dynatrace.com/t5/DQL/Need-hep-in-pulling-nested-json-log-line-as-seprate-line-with/m-p/297177#M3248</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/85903"&gt;@Dest-Roh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's me try to help you in this one,&lt;/P&gt;&lt;P&gt;I'm not sure if I understood correctly but what you want here it'll&amp;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:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;(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)?&lt;/LI-CODE&gt;&lt;P&gt;I would say that the best approach is to&amp;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.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 08:35:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Need-hep-in-pulling-nested-json-log-line-as-seprate-line-with/m-p/297177#M3248</guid>
      <dc:creator>MaximilianoML</dc:creator>
      <dc:date>2026-04-02T08:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need hep in pulling nested json log line as seprate line with DPL</title>
      <link>https://community.dynatrace.com/t5/DQL/Need-hep-in-pulling-nested-json-log-line-as-seprate-line-with/m-p/297186#M3249</link>
      <description>&lt;P&gt;This logic is able to pull the first record only but other record separated by comma its not picking UP {[{record1},{record2},{record3}]}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need to seperate as&amp;nbsp;&lt;/P&gt;&lt;P&gt;{Record1}&lt;/P&gt;&lt;P&gt;{Record2}&lt;/P&gt;&lt;P&gt;{Record3}&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 10:43:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Need-hep-in-pulling-nested-json-log-line-as-seprate-line-with/m-p/297186#M3249</guid>
      <dc:creator>Dest-Roh</dc:creator>
      <dc:date>2026-04-02T10:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need hep in pulling nested json log line as seprate line with DPL</title>
      <link>https://community.dynatrace.com/t5/DQL/Need-hep-in-pulling-nested-json-log-line-as-seprate-line-with/m-p/297189#M3250</link>
      <description>&lt;P&gt;Humm.... Okay.&lt;/P&gt;&lt;P&gt;Maybe this one, now ChatGPT is helping me:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(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)?&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 10:59:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Need-hep-in-pulling-nested-json-log-line-as-seprate-line-with/m-p/297189#M3250</guid>
      <dc:creator>MaximilianoML</dc:creator>
      <dc:date>2026-04-02T10:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need hep in pulling nested json log line as seprate line with DPL</title>
      <link>https://community.dynatrace.com/t5/DQL/Need-hep-in-pulling-nested-json-log-line-as-seprate-line-with/m-p/297231#M3252</link>
      <description>&lt;P&gt;Unfortunalty it is not possible to do just with DPL. You need &lt;EM&gt;&lt;STRONG&gt;expand&lt;/STRONG&gt;&lt;/EM&gt; from DQL to do this transformation:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2026 05:53:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Need-hep-in-pulling-nested-json-log-line-as-seprate-line-with/m-p/297231#M3252</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2026-04-03T05:53:46Z</dc:date>
    </item>
  </channel>
</rss>

