<?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: Filter dynamic time range in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Filter-dynamic-time-range/m-p/213688#M16</link>
    <description>&lt;DIV class="c-scrollbar__hider" role="presentation" data-qa="slack_kit_scrollbar"&gt;
&lt;DIV class="c-scrollbar__child" role="presentation"&gt;
&lt;DIV class="c-virtual_list__scroll_container" tabindex="-1" role="list" data-qa="slack_kit_list" aria-label="Sinisa Zubic (direct message, away)"&gt;
&lt;DIV id="1685543742.404899" class="c-virtual_list__item c-virtual_list__item--initial-activeitem" tabindex="0" role="listitem" aria-setsize="-1" data-qa="virtual-list-item" data-item-key="1685543742.404899"&gt;
&lt;DIV class="c-message_kit__background p-message_pane_message__message c-message_kit__message p-message_pane_message__message--last" role="presentation" data-qa="message_container" data-qa-unprocessed="false" data-qa-placeholder="false"&gt;
&lt;DIV class="c-message_kit__hover" role="document" aria-roledescription="message" data-qa-hover="true"&gt;
&lt;DIV class="c-message_kit__actions c-message_kit__actions--default"&gt;
&lt;DIV class="c-message_kit__gutter"&gt;
&lt;DIV class="c-message_kit__gutter__right" role="presentation" data-qa="message_content"&gt;
&lt;DIV class="c-message_kit__blocks c-message_kit__blocks--rich_text"&gt;
&lt;DIV class="c-message__message_blocks c-message__message_blocks--rich_text" data-qa="message-text"&gt;
&lt;DIV class="p-block_kit_renderer" data-qa="block-kit-renderer"&gt;
&lt;DIV class="p-block_kit_renderer__block_wrapper p-block_kit_renderer__block_wrapper--first"&gt;
&lt;DIV class="p-rich_text_block" dir="auto"&gt;
&lt;DIV class="p-rich_text_section"&gt;Hi Stefan,&lt;BR /&gt;this should be the query&lt;/DIV&gt;
&lt;PRE class="c-mrkdwn__pre" data-stringify-type="pre"&gt;fetch logs, from: bin(now()-1d, 1d) + 17h + 30m, to: bin(now(), 1d) + 17h + 30m&lt;/PRE&gt;
&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="p-rich_text_section"&gt;basically, you make use of the from an to parameters.&amp;nbsp;&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI class="p-rich_text_section"&gt;with now()-1d, you specify the timeframe exactly 24h ago&lt;/LI&gt;
&lt;LI class="p-rich_text_section"&gt;then with&amp;nbsp;bin(now()-1d, 1d) you round it to the start at the day, so at midnight&lt;/LI&gt;
&lt;LI class="p-rich_text_section"&gt;then you add the time of the day with&amp;nbsp;+ 17h + 30m&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="p-rich_text_section"&gt;Best,&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="c-scrollbar__track" role="presentation"&gt;Sini&lt;/DIV&gt;</description>
    <pubDate>Thu, 01 Jun 2023 14:49:30 GMT</pubDate>
    <dc:creator>sinisa_zubic</dc:creator>
    <dc:date>2023-06-01T14:49:30Z</dc:date>
    <item>
      <title>Filter dynamic time range</title>
      <link>https://community.dynatrace.com/t5/DQL/Filter-dynamic-time-range/m-p/213674#M11</link>
      <description>&lt;DIV class="c-message_kit__blocks c-message_kit__blocks--rich_text"&gt;
&lt;DIV class="c-message__message_blocks c-message__message_blocks--rich_text" data-qa="message-text"&gt;
&lt;DIV class="p-block_kit_renderer" data-qa="block-kit-renderer"&gt;
&lt;DIV class="p-block_kit_renderer__block_wrapper p-block_kit_renderer__block_wrapper--first"&gt;
&lt;DIV class="p-rich_text_block" dir="auto"&gt;
&lt;DIV class="p-rich_text_section"&gt;Is it possible to filter the time with a time range only, e.g. from 5:30am yesterday to 5:30am today?&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="c-message__reply_bar c-message_kit__thread_replies" role="presentation" data-qa="reply_bar" data-stringify-ignore="true"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 May 2023 14:04:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Filter-dynamic-time-range/m-p/213674#M11</guid>
      <dc:creator>stefan_eggersto</dc:creator>
      <dc:date>2023-05-31T14:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filter dynamic time range</title>
      <link>https://community.dynatrace.com/t5/DQL/Filter-dynamic-time-range/m-p/213688#M16</link>
      <description>&lt;DIV class="c-scrollbar__hider" role="presentation" data-qa="slack_kit_scrollbar"&gt;
&lt;DIV class="c-scrollbar__child" role="presentation"&gt;
&lt;DIV class="c-virtual_list__scroll_container" tabindex="-1" role="list" data-qa="slack_kit_list" aria-label="Sinisa Zubic (direct message, away)"&gt;
&lt;DIV id="1685543742.404899" class="c-virtual_list__item c-virtual_list__item--initial-activeitem" tabindex="0" role="listitem" aria-setsize="-1" data-qa="virtual-list-item" data-item-key="1685543742.404899"&gt;
&lt;DIV class="c-message_kit__background p-message_pane_message__message c-message_kit__message p-message_pane_message__message--last" role="presentation" data-qa="message_container" data-qa-unprocessed="false" data-qa-placeholder="false"&gt;
&lt;DIV class="c-message_kit__hover" role="document" aria-roledescription="message" data-qa-hover="true"&gt;
&lt;DIV class="c-message_kit__actions c-message_kit__actions--default"&gt;
&lt;DIV class="c-message_kit__gutter"&gt;
&lt;DIV class="c-message_kit__gutter__right" role="presentation" data-qa="message_content"&gt;
&lt;DIV class="c-message_kit__blocks c-message_kit__blocks--rich_text"&gt;
&lt;DIV class="c-message__message_blocks c-message__message_blocks--rich_text" data-qa="message-text"&gt;
&lt;DIV class="p-block_kit_renderer" data-qa="block-kit-renderer"&gt;
&lt;DIV class="p-block_kit_renderer__block_wrapper p-block_kit_renderer__block_wrapper--first"&gt;
&lt;DIV class="p-rich_text_block" dir="auto"&gt;
&lt;DIV class="p-rich_text_section"&gt;Hi Stefan,&lt;BR /&gt;this should be the query&lt;/DIV&gt;
&lt;PRE class="c-mrkdwn__pre" data-stringify-type="pre"&gt;fetch logs, from: bin(now()-1d, 1d) + 17h + 30m, to: bin(now(), 1d) + 17h + 30m&lt;/PRE&gt;
&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="p-rich_text_section"&gt;basically, you make use of the from an to parameters.&amp;nbsp;&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI class="p-rich_text_section"&gt;with now()-1d, you specify the timeframe exactly 24h ago&lt;/LI&gt;
&lt;LI class="p-rich_text_section"&gt;then with&amp;nbsp;bin(now()-1d, 1d) you round it to the start at the day, so at midnight&lt;/LI&gt;
&lt;LI class="p-rich_text_section"&gt;then you add the time of the day with&amp;nbsp;+ 17h + 30m&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="p-rich_text_section"&gt;Best,&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="c-scrollbar__track" role="presentation"&gt;Sini&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Jun 2023 14:49:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Filter-dynamic-time-range/m-p/213688#M16</guid>
      <dc:creator>sinisa_zubic</dc:creator>
      <dc:date>2023-06-01T14:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filter dynamic time range</title>
      <link>https://community.dynatrace.com/t5/DQL/Filter-dynamic-time-range/m-p/247119#M933</link>
      <description>&lt;P&gt;Also,&lt;BR /&gt;If your timezone is not in UTC then you might have to subtract/add that from the timeframe as Sini mentioned above.&lt;BR /&gt;My timezone is UTC+5:30 so I had to&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;from: bin(now()-1d, 1d) -5h -30m, to: bin(now(), 1d) -5h - 30m&lt;/PRE&gt;&lt;P&gt;do this to get the data of previous day.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/38283"&gt;@sinisa_zubic&lt;/a&gt;&amp;nbsp;this saved lot of effort for me&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Maheedhar.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 05:45:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Filter-dynamic-time-range/m-p/247119#M933</guid>
      <dc:creator>Maheedhar_T</dc:creator>
      <dc:date>2024-06-03T05:45:20Z</dc:date>
    </item>
  </channel>
</rss>

