<?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: Dropdown or time range picker in dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-or-time-range-picker-in-dashboard/m-p/412845#M41924</link>
    <description>&lt;P&gt;I have only one panel in my dashboard and have configured time range picker from UI but it doesn't work&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7169iDFBCCFDDD19244D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2019 11:21:48 GMT</pubDate>
    <dc:creator>snigdhasaxena</dc:creator>
    <dc:date>2019-06-11T11:21:48Z</dc:date>
    <item>
      <title>Dropdown or time range picker in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-or-time-range-picker-in-dashboard/m-p/412842#M41921</link>
      <description>&lt;P&gt;if we do configuration in UI to add a time range picker or dropdown in dashboard, do we still need to make any chnages in xml ?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 10:20:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-or-time-range-picker-in-dashboard/m-p/412842#M41921</guid>
      <dc:creator>snigdhasaxena</dc:creator>
      <dc:date>2019-06-11T10:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown or time range picker in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-or-time-range-picker-in-dashboard/m-p/412843#M41922</link>
      <description>&lt;P&gt;No, not required. It depends on the customization of how you want to the dropdown and time range picker to be .&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 10:41:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-or-time-range-picker-in-dashboard/m-p/412843#M41922</guid>
      <dc:creator>Nadhiyaa</dc:creator>
      <dc:date>2019-06-11T10:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown or time range picker in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-or-time-range-picker-in-dashboard/m-p/412844#M41923</link>
      <description>&lt;P&gt;You can make all neccessary configuration changes in the UI, without the need to touch the plain XML code.&lt;/P&gt;

&lt;P&gt;If you integrate a timetange picker in your Dashboard, use the edit search function for all panels in your dashboard to use the shared time picker as time constraint.&lt;/P&gt;

&lt;P&gt;For a dropdown selection you can specify a token name in the UI as well, which you can then integrate in the searches powering your panels - such as&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; sourcetype=$yourTokenHere$ | rest_of_your_search
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Jun 2019 10:42:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-or-time-range-picker-in-dashboard/m-p/412844#M41923</guid>
      <dc:creator>DMohn</dc:creator>
      <dc:date>2019-06-11T10:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown or time range picker in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-or-time-range-picker-in-dashboard/m-p/412845#M41924</link>
      <description>&lt;P&gt;I have only one panel in my dashboard and have configured time range picker from UI but it doesn't work&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7169iDFBCCFDDD19244D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 11:21:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-or-time-range-picker-in-dashboard/m-p/412845#M41924</guid>
      <dc:creator>snigdhasaxena</dc:creator>
      <dc:date>2019-06-11T11:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown or time range picker in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-or-time-range-picker-in-dashboard/m-p/412846#M41925</link>
      <description>&lt;P&gt;Hello @snigdhasaxena,&lt;/P&gt;

&lt;P&gt;you can do it from UI only. One you have created the drop down or time range picker. &lt;/P&gt;

&lt;P&gt;then on the panel click on edit search, and select the Time range as shared time picker. see below&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 11:32:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-or-time-range-picker-in-dashboard/m-p/412846#M41925</guid>
      <dc:creator>samupadh</dc:creator>
      <dc:date>2019-06-11T11:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown or time range picker in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-or-time-range-picker-in-dashboard/m-p/412847#M41926</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;test1&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="time_tok" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select Time&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;$time1$&amp;lt;/title&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;set token="time1"&amp;gt;$result.time_in_sec$&amp;lt;/set&amp;gt;
          &amp;lt;/done&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval latest1=if($time_tok.latest|s$ == "now", now(),$time_tok.latest|s$)  | eval earliest1 = if($time_tok.latest|s$ == "now", relative_time(now(), $time_tok.earliest|s$), $time_tok.earliest|s$)  | eval time_in_sec= latest1 - earliest1 | eval time_in_sec = time_in_sec -  (time_in_sec % 60) | fields + time_in_sec&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$time_tok.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$time_tok.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Jun 2019 11:32:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-or-time-range-picker-in-dashboard/m-p/412847#M41926</guid>
      <dc:creator>samupadh</dc:creator>
      <dc:date>2019-06-11T11:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown or time range picker in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-or-time-range-picker-in-dashboard/m-p/412848#M41927</link>
      <description>&lt;P&gt;Hi @snigdhasaxena,&lt;/P&gt;

&lt;P&gt;You have to set timerange to be the token in the panel's options.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Click on the edit search button at top right of the panel
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7171i4F9B60A926752CFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Under timerange select your shared token timerange
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7172i6437EC9931D3CB89/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 11 Jun 2019 11:37:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-or-time-range-picker-in-dashboard/m-p/412848#M41927</guid>
      <dc:creator>harshpatel</dc:creator>
      <dc:date>2019-06-11T11:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown or time range picker in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-or-time-range-picker-in-dashboard/m-p/412849#M41928</link>
      <description>&lt;P&gt;Thank you, it helped.&lt;BR /&gt;
But I'm adding a dropdown to select category alongwith time range picker, it doesn't work together. Any suggestions ?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 12:09:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-or-time-range-picker-in-dashboard/m-p/412849#M41928</guid>
      <dc:creator>snigdhasaxena</dc:creator>
      <dc:date>2019-06-11T12:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown or time range picker in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-or-time-range-picker-in-dashboard/m-p/412850#M41929</link>
      <description>&lt;P&gt;@snigdhasaxena &lt;/P&gt;

&lt;P&gt;It can work. the above example will work for time range picker only.&lt;BR /&gt;
For dropdown, like if we have drop down for category, then in the search string, you need to pass that value like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc category=$category_tok$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where category_tok is the token name of dropdown.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 12:12:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-or-time-range-picker-in-dashboard/m-p/412850#M41929</guid>
      <dc:creator>samupadh</dc:creator>
      <dc:date>2019-06-11T12:12:47Z</dc:date>
    </item>
  </channel>
</rss>

