<?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: JavaScript  Framework: How to add search bar with default timerange? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/JavaScript-Framework-How-to-add-search-bar-with-default/m-p/139287#M8395</link>
    <description>&lt;P&gt;Where you able to fix this , I am having the same issue in HTML dashboard we are working on . &lt;/P&gt;</description>
    <pubDate>Mon, 23 May 2016 15:39:43 GMT</pubDate>
    <dc:creator>theoborrero</dc:creator>
    <dc:date>2016-05-23T15:39:43Z</dc:date>
    <item>
      <title>JavaScript  Framework: How to add search bar with default timerange?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/JavaScript-Framework-How-to-add-search-bar-with-default/m-p/139284#M8392</link>
      <description>&lt;P&gt;I am using the code below to add a search bar and the timerange is defaulting to "All Time". How do I change it so that it defaults to "Last 15 minutes" using code below. Incidently the ui_prefs is set to 60 mins which this does not appear to pickup.&lt;BR /&gt;&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Bob&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
var mysearchbar = new SearchBarView({&lt;BR /&gt;
            id: "example-searchbar",&lt;BR /&gt;
            managerid: "example-search1",&lt;BR /&gt;
            timerange_earliest_time: mvc.tokenSafe("$earlyval$"),&lt;BR /&gt;
            timerange_latest_time: mvc.tokenSafe("$lateval$"),&lt;BR /&gt;
            default: "eventtype=bro_ | head 100",&lt;BR /&gt;
            value: mvc.tokenSafe("$searchquery$"),&lt;BR /&gt;
            el: $("#mysearchbarview")&lt;BR /&gt;
        }).render();&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:02:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/JavaScript-Framework-How-to-add-search-bar-with-default/m-p/139284#M8392</guid>
      <dc:creator>rdownie</dc:creator>
      <dc:date>2020-09-28T17:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript  Framework: How to add search bar with default timerange?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/JavaScript-Framework-How-to-add-search-bar-with-default/m-p/139285#M8393</link>
      <description>&lt;P&gt;Try editing the times.conf file. Set the &lt;STRONG&gt;order&lt;/STRONG&gt; of Last 5 minutes to lowest possible value.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jul 2014 08:02:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/JavaScript-Framework-How-to-add-search-bar-with-default/m-p/139285#M8393</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-13T08:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript  Framework: How to add search bar with default timerange?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/JavaScript-Framework-How-to-add-search-bar-with-default/m-p/139286#M8394</link>
      <description>&lt;P&gt;I took a look at the times.conf and "Last 15 minutes" is set to the lowest number yet it is still defaulting to "All time" which is set to the highest number?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2014 14:18:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/JavaScript-Framework-How-to-add-search-bar-with-default/m-p/139286#M8394</guid>
      <dc:creator>rdownie</dc:creator>
      <dc:date>2014-07-16T14:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript  Framework: How to add search bar with default timerange?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/JavaScript-Framework-How-to-add-search-bar-with-default/m-p/139287#M8395</link>
      <description>&lt;P&gt;Where you able to fix this , I am having the same issue in HTML dashboard we are working on . &lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 15:39:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/JavaScript-Framework-How-to-add-search-bar-with-default/m-p/139287#M8395</guid>
      <dc:creator>theoborrero</dc:creator>
      <dc:date>2016-05-23T15:39:43Z</dc:date>
    </item>
  </channel>
</rss>

