<?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: Need assistance with converting timestamp from the format (2024030602500000) (yyyymmddhhmmssSS) to 2024-03-06T02:50:00Z in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Need-assistance-with-converting-timestamp-from-the-format/m-p/239055#M31388</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/73014"&gt;@karthik_r&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You can use the &lt;A href="https://docs.dynatrace.com/docs/shortlink/lma-timestamp-configuration#createrule" target="_self"&gt;Timestamp/Splitting patterns&lt;/A&gt; to make what you want.&lt;/P&gt;&lt;P&gt;If you already upgraded to Log management and analytics (GRAIL), You can use the DQL to convert the data type of your timestamp. See this example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cesarsaravia_0-1709680929151.png" style="width: 641px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18115i477667AE5F402539/image-dimensions/641x492?v=v2" width="641" height="492" role="button" title="cesarsaravia_0-1709680929151.png" alt="cesarsaravia_0-1709680929151.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Reference:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/conversion-and-casting-functions#toTimestamp" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/conversion-and-casting-functions#toTimestamp&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2024 23:22:47 GMT</pubDate>
    <dc:creator>cesarsaravia</dc:creator>
    <dc:date>2024-03-05T23:22:47Z</dc:date>
    <item>
      <title>Need assistance with converting timestamp from the format (2024030602500000) (yyyymmddhhmmssSS) to 2024-03-06T02:50:00Z</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Need-assistance-with-converting-timestamp-from-the-format/m-p/239054#M31387</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;Can anyone please assist with conversion of the following timestamp in dynatrace log processing rules?&lt;/P&gt;&lt;P&gt;To convert timestamp from the format (2024030602500000) (yyyymmddhhmmssSS) to 2024-03-06T02:50:00Z (local timezone of the oneAgent server)&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 23:02:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Need-assistance-with-converting-timestamp-from-the-format/m-p/239054#M31387</guid>
      <dc:creator>karthik_r</dc:creator>
      <dc:date>2024-03-05T23:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance with converting timestamp from the format (2024030602500000) (yyyymmddhhmmssSS) to 2024-03-06T02:50:00Z</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Need-assistance-with-converting-timestamp-from-the-format/m-p/239055#M31388</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/73014"&gt;@karthik_r&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You can use the &lt;A href="https://docs.dynatrace.com/docs/shortlink/lma-timestamp-configuration#createrule" target="_self"&gt;Timestamp/Splitting patterns&lt;/A&gt; to make what you want.&lt;/P&gt;&lt;P&gt;If you already upgraded to Log management and analytics (GRAIL), You can use the DQL to convert the data type of your timestamp. See this example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cesarsaravia_0-1709680929151.png" style="width: 641px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18115i477667AE5F402539/image-dimensions/641x492?v=v2" width="641" height="492" role="button" title="cesarsaravia_0-1709680929151.png" alt="cesarsaravia_0-1709680929151.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Reference:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/conversion-and-casting-functions#toTimestamp" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/conversion-and-casting-functions#toTimestamp&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 23:22:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Need-assistance-with-converting-timestamp-from-the-format/m-p/239055#M31388</guid>
      <dc:creator>cesarsaravia</dc:creator>
      <dc:date>2024-03-05T23:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance with converting timestamp from the format (2024030602500000) (yyyymmddhhmmssSS) to 2024-03-06T02:50:00Z</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Need-assistance-with-converting-timestamp-from-the-format/m-p/239089#M31395</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/30478"&gt;@cesarsaravia&lt;/a&gt;&amp;nbsp;for your response.&lt;/P&gt;&lt;P&gt;The timestamp value (&lt;SPAN&gt;2024030602500000) what I am trying to convert is not the Unix Epoch time, and when I try to convert the value, it gives me the following, which is not correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Query: data record(timestamp = 2024030602500000)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | fieldsAdd type(timestamp), toTimestamp(timestamp)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Output: toTimestamp(timestamp)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1970-01-24 15:43:50.602&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please let me know if I am doing anything wrong.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 11:48:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Need-assistance-with-converting-timestamp-from-the-format/m-p/239089#M31395</guid>
      <dc:creator>karthik_r</dc:creator>
      <dc:date>2024-03-06T11:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance with converting timestamp from the format (2024030602500000) (yyyymmddhhmmssSS) to 2024-03-06T02:50:00Z</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Need-assistance-with-converting-timestamp-from-the-format/m-p/239112#M31400</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/73014"&gt;@karthik_r&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;In that case you need to use the function timestamp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data record(timestamp = 2024030602500000)
| fieldsAdd new_time= timestamp(year:2024, month:3, day:6, hour:2, minute:50, second:00)&lt;/LI-CODE&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="cesarsaravia_0-1709738525986.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18132i899D22D348A2E0C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cesarsaravia_0-1709738525986.png" alt="cesarsaravia_0-1709738525986.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Ps: I think you should use a parse function to extract those values for year, month, day, hour, minute and second from your custom timestamp value.&lt;/P&gt;&lt;P&gt;Reference:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/time-functions#timestamp" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/shortlink/time-functions#timestamp&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/string-functions#parse" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/string-functions#parse&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 16:01:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Need-assistance-with-converting-timestamp-from-the-format/m-p/239112#M31400</guid>
      <dc:creator>cesarsaravia</dc:creator>
      <dc:date>2024-03-06T16:01:43Z</dc:date>
    </item>
  </channel>
</rss>

