<?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: Calculate the TIMESTAMP duration in Log Analytics</title>
    <link>https://community.dynatrace.com/t5/Log-Analytics/Calculate-the-TIMESTAMP-duration/m-p/225579#M222</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/67564"&gt;@RPbiaggio&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Do you mean calculating the difference between start and end time, so the duration?&lt;/P&gt;&lt;P&gt;Or do you have problems with finding the start and end time itself for dashboarding?&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2023 12:16:25 GMT</pubDate>
    <dc:creator>marina_pollehn</dc:creator>
    <dc:date>2023-10-17T12:16:25Z</dc:date>
    <item>
      <title>Calculate the TIMESTAMP duration</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Calculate-the-TIMESTAMP-duration/m-p/225366#M221</link>
      <description>&lt;P&gt;Guys, I'm having great difficulty calculating the start and end times of my log. Does anyone know if this is really possible and if possible, give an example?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Log example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RPbiaggio_0-1697211685128.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/14588i32E73A1B80213249/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RPbiaggio_0-1697211685128.png" alt="RPbiaggio_0-1697211685128.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 14:18:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Calculate-the-TIMESTAMP-duration/m-p/225366#M221</guid>
      <dc:creator>RPbiaggio</dc:creator>
      <dc:date>2023-10-16T14:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the TIMESTAMP duration</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Calculate-the-TIMESTAMP-duration/m-p/225579#M222</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/67564"&gt;@RPbiaggio&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Do you mean calculating the difference between start and end time, so the duration?&lt;/P&gt;&lt;P&gt;Or do you have problems with finding the start and end time itself for dashboarding?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 12:16:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Calculate-the-TIMESTAMP-duration/m-p/225579#M222</guid>
      <dc:creator>marina_pollehn</dc:creator>
      <dc:date>2023-10-17T12:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the TIMESTAMP duration</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Calculate-the-TIMESTAMP-duration/m-p/225581#M223</link>
      <description>&lt;P&gt;Sorry, yes, exactly, the duration.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 11:46:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Calculate-the-TIMESTAMP-duration/m-p/225581#M223</guid>
      <dc:creator>RPbiaggio</dc:creator>
      <dc:date>2023-10-17T11:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the TIMESTAMP duration</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Calculate-the-TIMESTAMP-duration/m-p/225613#M224</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to know that: "All duration literals valid for the duration data type are applicable for the from: and to: parameters."&lt;/P&gt;&lt;P&gt;See description of the use of DQL and examples for duration calculation here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/platform/grail/dynatrace-query-language/commands#data-sources" target="_blank"&gt;https://www.dynatrace.com/support/help/platform/grail/dynatrace-query-language/commands#data-sources&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Radek&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 13:40:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Calculate-the-TIMESTAMP-duration/m-p/225613#M224</guid>
      <dc:creator>radek_jasinski</dc:creator>
      <dc:date>2023-10-17T13:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the TIMESTAMP duration</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Calculate-the-TIMESTAMP-duration/m-p/225736#M225</link>
      <description>&lt;P&gt;Sorry, but I couldn't understand this documentation and/or what I actually need to adjust here in the code. I currently have this configuration in the log rule.&lt;/P&gt;&lt;P&gt;USING(INOUT resource.run.createddate:TIMESTAMP, resource.run.finisheddate:TIMESTAMP)&lt;BR /&gt;| FIELDS_ADD(DurationTeste:(resource.run.createddate - resource.run.finisheddate))&lt;/P&gt;&lt;P&gt;I have the value in timestamp which is the difference between the creation and finish fields, but I am not able to convert this so that it shows me the data in minutes or hours.&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="RPbiaggio_0-1697578616151.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/14708iD4098513EB243068/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RPbiaggio_0-1697578616151.png" alt="RPbiaggio_0-1697578616151.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 21:37:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Calculate-the-TIMESTAMP-duration/m-p/225736#M225</guid>
      <dc:creator>RPbiaggio</dc:creator>
      <dc:date>2023-10-17T21:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the TIMESTAMP duration</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Calculate-the-TIMESTAMP-duration/m-p/230754#M226</link>
      <description>&lt;P&gt;Was made the follow code:&lt;/P&gt;&lt;P&gt;| FIELDS_ADD(durationTimestamp:(TIMESTAMP(resource.job.finishtime) - TIMESTAMP(resource.job.starttime)))//&lt;BR /&gt;| FIELDS_ADD(segundos_d:LONG(durationTimestamp)/1000000000000000)&lt;BR /&gt;| FIELDS_ADD(segundos_d_resto:MODULO(segundos_d,60))&lt;BR /&gt;| FIELDS_ADD(minutos_d:segundos_d/60)&lt;BR /&gt;| FIELDS_ADD(horas_d:minutos_d/60)&lt;BR /&gt;| FIELDS_ADD(dias_d:horas_d/24)&lt;BR /&gt;| FIELDS_ADD(duracao_total_execucao_job:horas_d+"h:"+minutos_d+"m:"+segundos_d_resto+"s")&lt;BR /&gt;| FIELDS_ADD(Inicio:resource.job.starttime, Final:resource.job.finishtime)&lt;BR /&gt;| FIELDS_ADD(duracaototalpipeline:segundos_d)&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 13:48:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Calculate-the-TIMESTAMP-duration/m-p/230754#M226</guid>
      <dc:creator>RPbiaggio</dc:creator>
      <dc:date>2023-12-04T13:48:02Z</dc:date>
    </item>
  </channel>
</rss>

