<?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 DQL Parse msg and extract data to new field in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/DQL-Parse-msg-and-extract-data-to-new-field/m-p/271196#M1754</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;I have the following msg:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;"Starting event processing. Event headers&lt;span class="lia-unicode-emoji" title=":key:"&gt;🔑&lt;/span&gt;s2k_bucketName, value:x-x-stg Key:w2w_objectUrl, value:processing/operations/2025/02/27/Operation-x-2025-02-24'T'19-20-00-stg.csv Key:s2k_lineNumber, value:3497 Key:event-id, value:8a37a48f-fbdf-3616-a751-217b3b2276c0 Key:eventId, value:8a37a48f-fbdf-3616-a751-217b3b2276c0 Key:type, value:x-operation-eod Key:eventType, value:x-operation-eod Key:timestamp, value:2025-02-27T10:22:27.688923215Z Key:timeStamp, value:2025-02-27T10:22:27.688928675Z Key:X-dynaTrace, value:&amp;#4;��2�� �&amp;#3;�~&amp;#2;@4�Ũ&amp;#3;&amp;lt;&amp;#1;.&amp;#4;&amp;#8;&amp;#1;&amp;#6;&amp;#8;��2�&amp;#8;&amp;#8;� &amp;#8;&amp;#1;&amp;#12; �E~o��yO���&amp;#12;C�%�&amp;#14;&amp;#16;�ywr��&amp;#26;� Key:traceparent, value:00-b3457e6f8699794fb28fac0c43cf25e2-f3797772a0ef1a95-01 Key:tracestate, value:34a1c5a8-a07e0240@dt=fw4;3;fcb932d5;f4;daa;0;0;33c;133b;2h01;3hfcb932d5;4hf4;5h01;6hb3457e6f8699794fb28fac0c43cf25e2;7hf3797772a0ef1a95 Key:x-request-id, value:ae6e7bdb-748a-328a-a5eb-2ff6ecaa9cf0 Key:is-eod, value:true. EventType: x-operation-eod Topic: eod-events (0/54544992) Key: "{ \"ts\": \"1740651747688\"}" "&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;I want to get&amp;nbsp;Key:s2k_lineNumber, value:3497 into columns so I can sort by line numbers&lt;BR /&gt;can you please assist ?&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 27 Feb 2025 11:29:01 GMT</pubDate>
    <dc:creator>almog50</dc:creator>
    <dc:date>2025-02-27T11:29:01Z</dc:date>
    <item>
      <title>DQL Parse msg and extract data to new field</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Parse-msg-and-extract-data-to-new-field/m-p/271196#M1754</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;I have the following msg:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;"Starting event processing. Event headers&lt;span class="lia-unicode-emoji" title=":key:"&gt;🔑&lt;/span&gt;s2k_bucketName, value:x-x-stg Key:w2w_objectUrl, value:processing/operations/2025/02/27/Operation-x-2025-02-24'T'19-20-00-stg.csv Key:s2k_lineNumber, value:3497 Key:event-id, value:8a37a48f-fbdf-3616-a751-217b3b2276c0 Key:eventId, value:8a37a48f-fbdf-3616-a751-217b3b2276c0 Key:type, value:x-operation-eod Key:eventType, value:x-operation-eod Key:timestamp, value:2025-02-27T10:22:27.688923215Z Key:timeStamp, value:2025-02-27T10:22:27.688928675Z Key:X-dynaTrace, value:&amp;#4;��2�� �&amp;#3;�~&amp;#2;@4�Ũ&amp;#3;&amp;lt;&amp;#1;.&amp;#4;&amp;#8;&amp;#1;&amp;#6;&amp;#8;��2�&amp;#8;&amp;#8;� &amp;#8;&amp;#1;&amp;#12; �E~o��yO���&amp;#12;C�%�&amp;#14;&amp;#16;�ywr��&amp;#26;� Key:traceparent, value:00-b3457e6f8699794fb28fac0c43cf25e2-f3797772a0ef1a95-01 Key:tracestate, value:34a1c5a8-a07e0240@dt=fw4;3;fcb932d5;f4;daa;0;0;33c;133b;2h01;3hfcb932d5;4hf4;5h01;6hb3457e6f8699794fb28fac0c43cf25e2;7hf3797772a0ef1a95 Key:x-request-id, value:ae6e7bdb-748a-328a-a5eb-2ff6ecaa9cf0 Key:is-eod, value:true. EventType: x-operation-eod Topic: eod-events (0/54544992) Key: "{ \"ts\": \"1740651747688\"}" "&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;I want to get&amp;nbsp;Key:s2k_lineNumber, value:3497 into columns so I can sort by line numbers&lt;BR /&gt;can you please assist ?&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Feb 2025 11:29:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Parse-msg-and-extract-data-to-new-field/m-p/271196#M1754</guid>
      <dc:creator>almog50</dc:creator>
      <dc:date>2025-02-27T11:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: DQL Parse msg and extract data to new field</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Parse-msg-and-extract-data-to-new-field/m-p/271266#M1756</link>
      <description>&lt;P&gt;Hi almog50,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I was able to parse this log for you and pull the&amp;nbsp;s2k_lineNumber. Here's the DQL query that I have created.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KeeganNelson_0-1740679780463.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26726i7B791E269743072F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KeeganNelson_0-1740679780463.png" alt="KeeganNelson_0-1740679780463.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's a little run down to what the parse is doing.&amp;nbsp;&lt;BR /&gt;1. First, I use LD (Line data) to search through the record until I see&amp;nbsp;&lt;EM&gt;'s2k_lineNumber, value:'&amp;nbsp;&lt;BR /&gt;&lt;/EM&gt;2. Then I use INT so that the next time it sees an integer then it stores that value in s2k_lineNumber&lt;BR /&gt;&lt;BR /&gt;The next step would be using the summarize function to sort the new column.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 18:21:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Parse-msg-and-extract-data-to-new-field/m-p/271266#M1756</guid>
      <dc:creator>KeeganNelson</dc:creator>
      <dc:date>2025-02-27T18:21:08Z</dc:date>
    </item>
  </channel>
</rss>

