<?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 Extract specific value/pattern from log file in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Extract-specific-value-pattern-from-log-file/m-p/279096#M2187</link>
    <description>&lt;P&gt;Hi ,&lt;BR /&gt;&lt;BR /&gt;I am new to Dynatrace and looking to explore logs. Looking for help to extract specific value from logs.&lt;BR /&gt;&lt;BR /&gt;Query&lt;BR /&gt;fetch logs&lt;BR /&gt;| filter dt.host_group.id == "XXXX" AND log.file.path == "XXXXX"&lt;BR /&gt;&lt;BR /&gt;Example log content&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;2025-06-11T&lt;/SPAN&gt;&lt;SPAN class=""&gt;05:15:35.487-0400&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;1596955825ms&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;GC&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;175&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Pause Young&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;Normal&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;G1 Evacuation Pause&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&amp;nbsp;&lt;SPAN class=""&gt;334M&lt;/SPAN&gt;-&amp;gt;40&lt;SPAN class=""&gt;M&lt;/SPAN&gt;(&lt;SPAN class=""&gt;512M&lt;/SPAN&gt;)&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;5.847ms&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;2025-06-11T&lt;/SPAN&gt;&lt;SPAN class=""&gt;05:15:35.492-0400&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;1596955830ms&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;GC&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;175&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Pause Young&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;Normal&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;G1 Evacuation Pause&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;362M&lt;/SPAN&gt;&lt;SPAN class=""&gt;-&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;55M&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;512M&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;4.827ms&lt;/SPAN&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;SPAN class=""&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;2025-06-11T&lt;/SPAN&gt;&lt;SPAN class=""&gt;04:14:04.275-0400&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;473664263ms&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;GC&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;58&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Pause Young&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;Normal&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;G1 Evacuation Pause&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Looking to extract the ms value at the end of event. I tried to use parse command but not working.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jun 2025 11:04:11 GMT</pubDate>
    <dc:creator>Agoyals</dc:creator>
    <dc:date>2025-06-11T11:04:11Z</dc:date>
    <item>
      <title>Extract specific value/pattern from log file</title>
      <link>https://community.dynatrace.com/t5/DQL/Extract-specific-value-pattern-from-log-file/m-p/279096#M2187</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;&lt;BR /&gt;I am new to Dynatrace and looking to explore logs. Looking for help to extract specific value from logs.&lt;BR /&gt;&lt;BR /&gt;Query&lt;BR /&gt;fetch logs&lt;BR /&gt;| filter dt.host_group.id == "XXXX" AND log.file.path == "XXXXX"&lt;BR /&gt;&lt;BR /&gt;Example log content&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;2025-06-11T&lt;/SPAN&gt;&lt;SPAN class=""&gt;05:15:35.487-0400&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;1596955825ms&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;GC&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;175&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Pause Young&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;Normal&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;G1 Evacuation Pause&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&amp;nbsp;&lt;SPAN class=""&gt;334M&lt;/SPAN&gt;-&amp;gt;40&lt;SPAN class=""&gt;M&lt;/SPAN&gt;(&lt;SPAN class=""&gt;512M&lt;/SPAN&gt;)&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;5.847ms&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;2025-06-11T&lt;/SPAN&gt;&lt;SPAN class=""&gt;05:15:35.492-0400&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;1596955830ms&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;GC&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;175&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Pause Young&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;Normal&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;G1 Evacuation Pause&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;362M&lt;/SPAN&gt;&lt;SPAN class=""&gt;-&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;55M&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;512M&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;4.827ms&lt;/SPAN&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;SPAN class=""&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;2025-06-11T&lt;/SPAN&gt;&lt;SPAN class=""&gt;04:14:04.275-0400&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;473664263ms&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;GC&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;58&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Pause Young&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;Normal&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;G1 Evacuation Pause&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Looking to extract the ms value at the end of event. I tried to use parse command but not working.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 11:04:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Extract-specific-value-pattern-from-log-file/m-p/279096#M2187</guid>
      <dc:creator>Agoyals</dc:creator>
      <dc:date>2025-06-11T11:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Extract specific value/pattern from log file</title>
      <link>https://community.dynatrace.com/t5/DQL/Extract-specific-value-pattern-from-log-file/m-p/279116#M2188</link>
      <description>&lt;P&gt;Hi Agoyals,&lt;/P&gt;&lt;P&gt;You can do something like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;fetch logs&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| filter dt.host_group.id == "XXXX" AND log.file.path == "XXXXX"&lt;BR /&gt;| parse content, """&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;DATA&amp;nbsp;&lt;BR /&gt;'(512M)' // Literal string just before the ms value&lt;BR /&gt;SPACE // Space character before the desired value&lt;BR /&gt;(DIGIT '.' DIGIT):value // The value column will contain the desired number, if it's always in the form X.XXX&lt;BR /&gt;'ms' // To end the parsing&lt;BR /&gt;&lt;BR /&gt;If you want to plot the values, or handle them as a number, you can use the following command:&lt;BR /&gt;| fieldsAdd value = toDouble(value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 12:17:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Extract-specific-value-pattern-from-log-file/m-p/279116#M2188</guid>
      <dc:creator>jmarbaix</dc:creator>
      <dc:date>2025-06-11T12:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extract specific value/pattern from log file</title>
      <link>https://community.dynatrace.com/t5/DQL/Extract-specific-value-pattern-from-log-file/m-p/279126#M2189</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Adding to&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/77377"&gt;@jmarbaix&lt;/a&gt;'s answer, you could also use this parse in case you don't have that 512M as static:&lt;BR /&gt;&lt;BR /&gt;parse content, "LD'-&amp;gt;' LD SPACE (DIGIT'.'DIGIT):value 'ms'"&lt;/P&gt;&lt;P&gt;Note: if you convert it to double it will round the value to 2 decimal points. In which case, you can straight up transfomr it to double by doing: DOUBLE:value in the parse.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 12:52:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Extract-specific-value-pattern-from-log-file/m-p/279126#M2189</guid>
      <dc:creator>g_kat</dc:creator>
      <dc:date>2025-06-11T12:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extract specific value/pattern from log file</title>
      <link>https://community.dynatrace.com/t5/DQL/Extract-specific-value-pattern-from-log-file/m-p/279127#M2190</link>
      <description>&lt;P&gt;Good one!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 12:55:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Extract-specific-value-pattern-from-log-file/m-p/279127#M2190</guid>
      <dc:creator>jmarbaix</dc:creator>
      <dc:date>2025-06-11T12:55:18Z</dc:date>
    </item>
  </channel>
</rss>

