<?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: Use Dropdown Selector to Choose Day Ranges in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Dropdown-Selector-to-Choose-Day-Ranges/m-p/602069#M49441</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/56221"&gt;@lennys26&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you can create your own time defaults in [Settings -- User Interface -- Time Ranges]&lt;/P&gt;&lt;P&gt;remember to assign the new default Time ranges to the roles of your users.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 12:52:18 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-06-16T12:52:18Z</dc:date>
    <item>
      <title>Use Dropdown Selector to Choose Day Ranges</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Dropdown-Selector-to-Choose-Day-Ranges/m-p/602053#M49440</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I am trying to use a drop down selector (as opposed to the time selector) in my dashboard to create a token with an&amp;nbsp;@d value in&amp;nbsp;%e-%b-%Y %T.%L.&lt;/P&gt;&lt;P&gt;In other words, I want to provide users an option for&amp;nbsp;"Today, Yesterday, This Week" and have that populate tokens with earliest (@d) &amp;amp; latest (@d+86399) value of that day.&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;Input: User selects TODAY&lt;/P&gt;&lt;P&gt;Token.start:&amp;nbsp;&amp;nbsp;16-jun-2022 00:00:00.000&lt;/P&gt;&lt;P&gt;Token.end:&amp;nbsp;16-jun-2022 23:59:59.999&lt;BR /&gt;&lt;BR /&gt;This should be straight forward, but for some reason, I am racking my brain trying to get this.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 11:33:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Dropdown-Selector-to-Choose-Day-Ranges/m-p/602053#M49440</guid>
      <dc:creator>lennys26</dc:creator>
      <dc:date>2022-06-16T11:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Use Dropdown Selector to Choose Day Ranges</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Dropdown-Selector-to-Choose-Day-Ranges/m-p/602069#M49441</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/56221"&gt;@lennys26&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you can create your own time defaults in [Settings -- User Interface -- Time Ranges]&lt;/P&gt;&lt;P&gt;remember to assign the new default Time ranges to the roles of your users.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 12:52:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Dropdown-Selector-to-Choose-Day-Ranges/m-p/602069#M49441</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-06-16T12:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Use Dropdown Selector to Choose Day Ranges</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Dropdown-Selector-to-Choose-Day-Ranges/m-p/602071#M49442</link>
      <description>&lt;P&gt;Thanks for the reply. Actually it is not for the time range of the search itself, but for secondary criteria in my DB that is being queried (DBXQUERY).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, for some more info, the variable will be used like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| dbxquery query=" 
SELECT &amp;lt;field1&amp;gt;, &amp;lt;field2&amp;gt;
FROM &amp;lt;db_name&amp;gt;
WHERE start_time &amp;gt;= &amp;lt;$start_time_tok$&amp;gt; AND start_time &amp;lt;$end_time_tok$&amp;gt;
AND segment_time between &amp;lt;$start_seg_tok$&amp;gt; AND &amp;lt;$end_seg_tok$&amp;gt; ;" &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the &amp;lt;start_seg_tok&amp;gt; and &amp;lt;end_seg_tok&amp;gt; to be the start and end of the particular day selected in the drop down.&lt;/P&gt;&lt;P&gt;I am not using the Splunk provided time selector in this case.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 13:37:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Dropdown-Selector-to-Choose-Day-Ranges/m-p/602071#M49442</guid>
      <dc:creator>lennys26</dc:creator>
      <dc:date>2022-06-16T13:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use Dropdown Selector to Choose Day Ranges</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Dropdown-Selector-to-Choose-Day-Ranges/m-p/602077#M49443</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/56221"&gt;@lennys26&lt;/a&gt;&amp;nbsp;- You can use input something like this in the Simple XML.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;   &amp;lt;input type="dropdown" token="release" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Release&amp;lt;/label&amp;gt;
      &amp;lt;choice value="Today"&amp;gt;Today&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Yesterday"&amp;gt;Today&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition label="Today"&amp;gt;
          &amp;lt;set token="custom_earliest"&amp;gt;-@d&amp;lt;/set&amp;gt;
          &amp;lt;set token="custom_latest"&amp;gt;now&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition label="Yesterday"&amp;gt;
          &amp;lt;set token="custom_earliest"&amp;gt;-2d@d&amp;lt;/set&amp;gt;
          &amp;lt;set token="custom_latest"&amp;gt;-1d@d&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
      &amp;lt;default&amp;gt;Today&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;(I could be wrong in the values assigned, but this is the logic you can use.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 13:15:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Use-Dropdown-Selector-to-Choose-Day-Ranges/m-p/602077#M49443</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-06-16T13:15:55Z</dc:date>
    </item>
  </channel>
</rss>

