<?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: Fetch logs from timestamp with filters in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-timestamp-with-filters/m-p/239354#M704</link>
    <description>&lt;P&gt;should you not use a &lt;A href="https://docs.dynatrace.com/docs/shortlink/conversion-and-casting-functions#toTimeframe" target="_self"&gt;casting function&lt;/A&gt; instead of concat?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2024 11:36:04 GMT</pubDate>
    <dc:creator>wouterdt</dc:creator>
    <dc:date>2024-03-08T11:36:04Z</dc:date>
    <item>
      <title>Fetch logs from timestamp with filters</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-timestamp-with-filters/m-p/239352#M703</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I created a dashboard with is counting the number of raw per hours with personnalized ingested data.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexisGND_3-1709895550612.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18169iBF63AC8D20074BE3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlexisGND_3-1709895550612.png" alt="AlexisGND_3-1709895550612.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a filter that contains numbers representing the day :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexisGND_2-1709895412595.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18168i6565AB516591EA03/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlexisGND_2-1709895412595.png" alt="AlexisGND_2-1709895412595.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And my wish is to set the timestamp day filtering of these counting&amp;nbsp;tiles, with the one selected in the filter, but there is a problem :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexisGND_1-1709895371532.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18167iA4C7E0EF47646039/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlexisGND_1-1709895371532.png" alt="AlexisGND_1-1709895371532.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The idea is not to set the global timeframe of the dashboard to the beginning of the year (takes too long), that's why i want every tiles to get the day of the filter in case i want to switch between yesterday and other previous days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this even possible ? or is there another way to do it ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your response &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 11:04:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-timestamp-with-filters/m-p/239352#M703</guid>
      <dc:creator>AlexisGND</dc:creator>
      <dc:date>2024-03-08T11:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch logs from timestamp with filters</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-timestamp-with-filters/m-p/239354#M704</link>
      <description>&lt;P&gt;should you not use a &lt;A href="https://docs.dynatrace.com/docs/shortlink/conversion-and-casting-functions#toTimeframe" target="_self"&gt;casting function&lt;/A&gt; instead of concat?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 11:36:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-timestamp-with-filters/m-p/239354#M704</guid>
      <dc:creator>wouterdt</dc:creator>
      <dc:date>2024-03-08T11:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch logs from timestamp with filters</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-timestamp-with-filters/m-p/239464#M705</link>
      <description>&lt;P&gt;&lt;STRONG&gt;At the end, it worked with the concat :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;fetch logs, from: toTimestamp(concat($Year, "-", $Month, "-", $Day, "T00:00:00.000Z")), to: toTimestamp(concat($Year, "-", $Month, "-", $Day, "T23:59:59.000Z"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't possess enough technical knowledge of dql for using casting function and I think it's not adapted with my situation, maybe I am wrong.&lt;/P&gt;&lt;P&gt;But the end result is what I wanted.&lt;BR /&gt;Thanks for your idea, I will work on the casting function, see if it's more optimized or not.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 10:31:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-timestamp-with-filters/m-p/239464#M705</guid>
      <dc:creator>AlexisGND</dc:creator>
      <dc:date>2024-03-11T10:31:12Z</dc:date>
    </item>
  </channel>
</rss>

