<?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 Fetch start_time and end_time_new from Log content in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Fetch-start-time-and-end-time-new-from-Log-content/m-p/283798#M2448</link>
    <description>&lt;P&gt;LOG Content:&amp;nbsp;&lt;BR /&gt;&lt;SPAN class=""&gt;25&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;08&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;13&lt;/SPAN&gt; &lt;SPAN class=""&gt;11&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;23&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;51&lt;/SPAN&gt;&lt;SPAN&gt; INFO log_msg for Job status in nprod: Appended latest task for job_id &lt;/SPAN&gt;&lt;SPAN class=""&gt;1234&lt;/SPAN&gt;&lt;SPAN&gt;: {'job_id': '&lt;/SPAN&gt;&lt;SPAN class=""&gt;1234&lt;/SPAN&gt;&lt;SPAN&gt;', 'run_id': '&lt;/SPAN&gt;&lt;SPAN class=""&gt;321&lt;/SPAN&gt;&lt;SPAN&gt;', 'task_key': 'GRR', 'start_time_new': 'Aug &lt;/SPAN&gt;&lt;SPAN class=""&gt;13&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;2025&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;00&lt;/SPAN&gt;&lt;SPAN&gt; AM', 'end_time_new': 'Aug &lt;/SPAN&gt;&lt;SPAN class=""&gt;13&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;2025&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;00&lt;/SPAN&gt;&lt;SPAN&gt; AM', 'result_state': 'FAILED', 'execution_duration': '0m 3s'}&lt;BR /&gt;&lt;BR /&gt;Used below query by got NULL result:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;fetch logs //, scanLimit: 500, samplingRatio: 1000&lt;BR /&gt;| filter matchesPhrase(content, "&lt;SPAN class=""&gt;1234&lt;/SPAN&gt;")&lt;BR /&gt;| filter matchesValue(loglevel, "INFO")&lt;BR /&gt;| parse content, " 'start_time_new': '&amp;lt;start&amp;gt;'"&lt;BR /&gt;| sort timestamp desc&lt;BR /&gt;| fields start&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Sep 2025 12:17:04 GMT</pubDate>
    <dc:creator>Gopi-10</dc:creator>
    <dc:date>2025-09-01T12:17:04Z</dc:date>
    <item>
      <title>Fetch start_time and end_time_new from Log content</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-start-time-and-end-time-new-from-Log-content/m-p/283798#M2448</link>
      <description>&lt;P&gt;LOG Content:&amp;nbsp;&lt;BR /&gt;&lt;SPAN class=""&gt;25&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;08&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;13&lt;/SPAN&gt; &lt;SPAN class=""&gt;11&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;23&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;51&lt;/SPAN&gt;&lt;SPAN&gt; INFO log_msg for Job status in nprod: Appended latest task for job_id &lt;/SPAN&gt;&lt;SPAN class=""&gt;1234&lt;/SPAN&gt;&lt;SPAN&gt;: {'job_id': '&lt;/SPAN&gt;&lt;SPAN class=""&gt;1234&lt;/SPAN&gt;&lt;SPAN&gt;', 'run_id': '&lt;/SPAN&gt;&lt;SPAN class=""&gt;321&lt;/SPAN&gt;&lt;SPAN&gt;', 'task_key': 'GRR', 'start_time_new': 'Aug &lt;/SPAN&gt;&lt;SPAN class=""&gt;13&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;2025&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;00&lt;/SPAN&gt;&lt;SPAN&gt; AM', 'end_time_new': 'Aug &lt;/SPAN&gt;&lt;SPAN class=""&gt;13&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;2025&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;00&lt;/SPAN&gt;&lt;SPAN&gt; AM', 'result_state': 'FAILED', 'execution_duration': '0m 3s'}&lt;BR /&gt;&lt;BR /&gt;Used below query by got NULL result:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;fetch logs //, scanLimit: 500, samplingRatio: 1000&lt;BR /&gt;| filter matchesPhrase(content, "&lt;SPAN class=""&gt;1234&lt;/SPAN&gt;")&lt;BR /&gt;| filter matchesValue(loglevel, "INFO")&lt;BR /&gt;| parse content, " 'start_time_new': '&amp;lt;start&amp;gt;'"&lt;BR /&gt;| sort timestamp desc&lt;BR /&gt;| fields start&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2025 12:17:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-start-time-and-end-time-new-from-Log-content/m-p/283798#M2448</guid>
      <dc:creator>Gopi-10</dc:creator>
      <dc:date>2025-09-01T12:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need to parse into JSON. I need to fetch start time and end time new from Log content.</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-start-time-and-end-time-new-from-Log-content/m-p/283833#M2450</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/80443"&gt;@Gopi-10&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Can you try this?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;| parse content, """LD 'start_time_new\': \'' LD:start_time_new '\','"""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-08-14 at 8.18.43 AM.png" style="width: 970px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29585i2B70C1969C61E002/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-08-14 at 8.18.43 AM.png" alt="Screenshot 2025-08-14 at 8.18.43 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 13:19:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-start-time-and-end-time-new-from-Log-content/m-p/283833#M2450</guid>
      <dc:creator>Akhil-Jayendran</dc:creator>
      <dc:date>2025-08-14T13:19:44Z</dc:date>
    </item>
  </channel>
</rss>

