<?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 Re: Parse Multiline Log in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Parse-Multiline-Log/m-p/228696#M349</link>
    <description>&lt;P&gt;Thanks &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/38283"&gt;@sinisa_zubic&lt;/a&gt;&amp;nbsp;, it worked perfectly!&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2023 18:05:43 GMT</pubDate>
    <dc:creator>MarcioKaue</dc:creator>
    <dc:date>2023-11-14T18:05:43Z</dc:date>
    <item>
      <title>Parse Multiline Log</title>
      <link>https://community.dynatrace.com/t5/DQL/Parse-Multiline-Log/m-p/228681#M347</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are facing a problem parsing log lines where we understand that the root cause is due to the data being multiline.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Below is an example log:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2023-02-31 11:51:28,988 - INFO - Prediction Output: class0_proba=0.00 class1_proba=0.00&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;INFO: 0.0.0.0:12345 - "POST /api/v1/model/string/predict HTTP/1.1" 200 OK&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;We would like to parse the Status Code information but it is not being effective:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;fetch logs&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| filter contains(content, "POST")&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| parse content, "LD 'HTTP/1.1\"' LD:httpcode "&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;In a log that is not multiline this parse works correctly. Does anyone have any idea how we can extract this information?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 15:16:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parse-Multiline-Log/m-p/228681#M347</guid>
      <dc:creator>MarcioKaue</dc:creator>
      <dc:date>2023-11-14T15:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Multiline Log</title>
      <link>https://community.dynatrace.com/t5/DQL/Parse-Multiline-Log/m-p/228687#M348</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/55571"&gt;@MarcioKaue&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason why is because &lt;A href="https://docs.dynatrace.com/docs/shortlink/dpl-lines-strings#line-data" target="_blank"&gt;LD&lt;/A&gt; is only matching one single line. You have to use the &lt;A href="https://docs.dynatrace.com/docs/shortlink/dpl-lines-strings#example" target="_blank"&gt;DATA&lt;/A&gt; matcher, which is the multiline matcher.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| parse content, """DATA 'HTTP/1.1\" ' INT:httpcode"""&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;BR /&gt;Sini&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 16:43:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parse-Multiline-Log/m-p/228687#M348</guid>
      <dc:creator>sinisa_zubic</dc:creator>
      <dc:date>2023-11-14T16:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Multiline Log</title>
      <link>https://community.dynatrace.com/t5/DQL/Parse-Multiline-Log/m-p/228696#M349</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/38283"&gt;@sinisa_zubic&lt;/a&gt;&amp;nbsp;, it worked perfectly!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 18:05:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parse-Multiline-Log/m-p/228696#M349</guid>
      <dc:creator>MarcioKaue</dc:creator>
      <dc:date>2023-11-14T18:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Multiline Log</title>
      <link>https://community.dynatrace.com/t5/DQL/Parse-Multiline-Log/m-p/228703#M350</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/38283"&gt;@sinisa_zubic&lt;/a&gt;&amp;nbsp;,Can we also get other fields using DATA?&lt;/P&gt;&lt;P&gt;Example get status code and API name "/api/v1/model/string/predict"&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 18:45:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parse-Multiline-Log/m-p/228703#M350</guid>
      <dc:creator>MarcioKaue</dc:creator>
      <dc:date>2023-11-14T18:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Multiline Log</title>
      <link>https://community.dynatrace.com/t5/DQL/Parse-Multiline-Log/m-p/228706#M351</link>
      <description>&lt;P&gt;yes you can&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| parse content, """DATA '"' ALPHA:method ' ' LD:apiName ' HTTP/1.1\" ' INT:httpcode"""&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are new to the Dynatrace Pattern Language, I would suggest that you check out those two resources&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dynatrace.com/news/blog/speed-up-your-security-investigations-with-dpl-architect/" target="_blank"&gt;https://www.dynatrace.com/news/blog/speed-up-your-security-investigations-with-dpl-architect/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/platform/grail/dynatrace-pattern-language/dpl-architect" target="_blank"&gt;https://docs.dynatrace.com/docs/platform/grail/dynatrace-pattern-language/dpl-architect&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 19:16:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parse-Multiline-Log/m-p/228706#M351</guid>
      <dc:creator>sinisa_zubic</dc:creator>
      <dc:date>2023-11-14T19:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Multiline Log</title>
      <link>https://community.dynatrace.com/t5/DQL/Parse-Multiline-Log/m-p/275217#M1946</link>
      <description>&lt;P&gt;I am trying to figure out DQL/DPL&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Stuck on this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;info: cartservice.cartstore.ValkeyCartStore[0]&lt;BR /&gt;AddItemAsync called with userId=744108ea-1a14-11f0-b19d-fe219cfda8e5, productId=2ZYFJ3GM2N, quantity=5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need to pull UserID, productId, and quantity.&lt;/P&gt;&lt;P&gt;Going through a class on university:&lt;/P&gt;&lt;P&gt;&lt;A href="https://university.dynatrace.com/ondemand/course/39387/video/36652?content=resources&amp;amp;section=39620" target="_blank"&gt;https://university.dynatrace.com/ondemand/course/39387/video/36652?content=resources&amp;amp;section=39620&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But their example didn't have two lines.&amp;nbsp; I know to use DATA but just can't figure out.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 18:58:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parse-Multiline-Log/m-p/275217#M1946</guid>
      <dc:creator>Kenny_Gillette</dc:creator>
      <dc:date>2025-04-15T18:58:23Z</dc:date>
    </item>
  </channel>
</rss>

