<?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: Parsing the Logs in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Parsing-the-Logs/m-p/286727#M2622</link>
    <description>&lt;P&gt;Thanks for this is not working&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Agoyals_0-1758714296092.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30234iB1F5E27C9FBCB1A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Agoyals_0-1758714296092.png" alt="Agoyals_0-1758714296092.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Sep 2025 11:45:08 GMT</pubDate>
    <dc:creator>Agoyals</dc:creator>
    <dc:date>2025-09-24T11:45:08Z</dc:date>
    <item>
      <title>Parsing the Logs</title>
      <link>https://community.dynatrace.com/t5/DQL/Parsing-the-Logs/m-p/286613#M2616</link>
      <description>&lt;P&gt;I am bit in struggle of parsing the logs.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Example log patten&lt;BR /&gt;&amp;lt;servername&amp;gt;.taskmanager.&amp;lt;servername&amp;gt;:&amp;lt;digits&amp;gt;-1333b8.Status.Shuffle.Netty.UsedMemorySegments: 0&lt;BR /&gt;&amp;lt;servername&amp;gt;.taskmanager.&amp;lt;servername&amp;gt;:&amp;lt;digits&amp;gt;-1333b8.Status.Shuffle.Netty.UsedMemory: 1&lt;BR /&gt;&lt;BR /&gt;basically I want to extract metric_name and metric_value&lt;BR /&gt;Metric_name&lt;BR /&gt;Shuffle.Netty.UsedMemorySegments&lt;BR /&gt;Shuffle.Netty.UsedMemory&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Metric Value&lt;BR /&gt;0&lt;BR /&gt;1&lt;BR /&gt;&lt;BR /&gt;I tried hard coded values which is working but want dynamic as servername and some other parts are varies.&lt;BR /&gt;| fieldsadd replaceString(content,"&amp;lt;servername&amp;gt;.taskmanager.&amp;lt;servername&amp;gt;:&amp;lt;digits&amp;gt;-1333b8.Status.", ""), alias: keyvalue&lt;BR /&gt;| parse keyvalue, """LD:metric_name":" LD:metric_value"""&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 09:44:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parsing-the-Logs/m-p/286613#M2616</guid>
      <dc:creator>Agoyals</dc:creator>
      <dc:date>2025-09-24T09:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing the Logs</title>
      <link>https://community.dynatrace.com/t5/DQL/Parsing-the-Logs/m-p/286723#M2621</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;You can parse everything after .Status. up to the colon as the metric_name, and then parse the value after the colon as the metric_value.&amp;nbsp;&lt;BR /&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs
| filter contains(content, ".Status.")
| parse content, "LD:ignore '.Status.' STRING:metric_name ':' INT:metric_value"
| fields metric_name, metric_value&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;or&amp;nbsp;If values can be floating-point numbers, use:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs
| filter contains(content, ".Status.")
| parse content, "LD:ignore '.Status.' STRING:metric_name ':' DOUBLE:metric_value"
| fields metric_name, metric_value&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 Sep 2025 10:54:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parsing-the-Logs/m-p/286723#M2621</guid>
      <dc:creator>t_pawlak</dc:creator>
      <dc:date>2025-09-24T10:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing the Logs</title>
      <link>https://community.dynatrace.com/t5/DQL/Parsing-the-Logs/m-p/286727#M2622</link>
      <description>&lt;P&gt;Thanks for this is not working&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Agoyals_0-1758714296092.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30234iB1F5E27C9FBCB1A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Agoyals_0-1758714296092.png" alt="Agoyals_0-1758714296092.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 11:45:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parsing-the-Logs/m-p/286727#M2622</guid>
      <dc:creator>Agoyals</dc:creator>
      <dc:date>2025-09-24T11:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing the Logs</title>
      <link>https://community.dynatrace.com/t5/DQL/Parsing-the-Logs/m-p/286731#M2623</link>
      <description>&lt;P&gt;Actually with slight modification it worked&amp;nbsp;&lt;BR /&gt;| parse content, """LD:ignore".Status."LD:metric_name":"LD:metric_value"""&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 11:59:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parsing-the-Logs/m-p/286731#M2623</guid>
      <dc:creator>Agoyals</dc:creator>
      <dc:date>2025-09-24T11:59:41Z</dc:date>
    </item>
  </channel>
</rss>

