<?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: Display selected time range from default dashboard picker in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-selected-time-range-from-default-dashboard-picker/m-p/327357#M21220</link>
    <description>&lt;P&gt;You can use following search to get the current selected time-range picker value.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|gentimes start=-1 | addinfo | convert ctime(*) | eval message="Total failed attempts ".info_min_time." to ".info_max_time | table message
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now you can run this search as a single value panel OR run as separate search element and setup tokens with value from the results (and then use the token in your title/label). &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/Viz/tokens#Search_tokens_for_dynamic_display_example"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.1/Viz/tokens#Search_tokens_for_dynamic_display_example&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Apr 2017 20:11:50 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-04-13T20:11:50Z</dc:date>
    <item>
      <title>Display selected time range from default dashboard picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-selected-time-range-from-default-dashboard-picker/m-p/327356#M21219</link>
      <description>&lt;P&gt;I'd like to save the earliest time and latest time from a selection on the default dashboard time picker. When a user of the dashboard selects a Date&amp;amp;Time range I'd like to display that date and time range on the dashboard for clarity. &lt;/P&gt;

&lt;P&gt;Best case would be putting that token in a title, second best would be adding a single value to display it. &lt;/P&gt;

&lt;P&gt;Any suggestions? I tried using the token $field1$ but the search wouldn't run. &lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 17:27:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-selected-time-range-from-default-dashboard-picker/m-p/327356#M21219</guid>
      <dc:creator>ErikaE</dc:creator>
      <dc:date>2017-04-13T17:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Display selected time range from default dashboard picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-selected-time-range-from-default-dashboard-picker/m-p/327357#M21220</link>
      <description>&lt;P&gt;You can use following search to get the current selected time-range picker value.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|gentimes start=-1 | addinfo | convert ctime(*) | eval message="Total failed attempts ".info_min_time." to ".info_max_time | table message
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now you can run this search as a single value panel OR run as separate search element and setup tokens with value from the results (and then use the token in your title/label). &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/Viz/tokens#Search_tokens_for_dynamic_display_example"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.1/Viz/tokens#Search_tokens_for_dynamic_display_example&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 20:11:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-selected-time-range-from-default-dashboard-picker/m-p/327357#M21220</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-13T20:11:50Z</dc:date>
    </item>
  </channel>
</rss>

