<?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: Timerangepicker earliest problem in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timerangepicker-earliest-problem/m-p/51077#M2571</link>
    <description>&lt;P&gt;Thanks for responding&lt;/P&gt;</description>
    <pubDate>Tue, 30 Oct 2012 10:24:39 GMT</pubDate>
    <dc:creator>Ant1D</dc:creator>
    <dc:date>2012-10-30T10:24:39Z</dc:date>
    <item>
      <title>Timerangepicker earliest problem</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timerangepicker-earliest-problem/m-p/51069#M2563</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a view with a chart that uses the timerangepicker module. The index which is used to display data in this chart has data going back as far as January 2012. However, I only want to be able to use the timerangepicker to return data from July 2012.&lt;/P&gt;

&lt;P&gt;The two cases I am seeing are as follows:&lt;BR /&gt;
1) If I try to add the earliest param to my hiddensearch for this chart, the timerangepicker does not work at all when the hiddensearch is inside the timerangepicker module code.&lt;BR /&gt;
2) If I place the timerangepicker inside of the hiddensearch module code, then the earliest param is ignored when I set the timerangepicker to 'All time'&lt;/P&gt;

&lt;P&gt;What I would like is that no mattter how far back you set the timerangepicker, it will not return data prior to July 2012. So if I choose 'All time' the chart will not return the data from January through June 2012 end.&lt;/P&gt;

&lt;P&gt;Is there a way of getting this behaviour in a view?&lt;/P&gt;

&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 09:28:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timerangepicker-earliest-problem/m-p/51069#M2563</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2012-09-05T09:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Timerangepicker earliest problem</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timerangepicker-earliest-problem/m-p/51070#M2564</link>
      <description>&lt;P&gt;did you try by using your own custom &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.3/admin/Timesconf"&gt;times.conf&lt;/A&gt; ?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 09:35:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timerangepicker-earliest-problem/m-p/51070#M2564</guid>
      <dc:creator>MarioM</dc:creator>
      <dc:date>2012-09-05T09:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Timerangepicker earliest problem</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timerangepicker-earliest-problem/m-p/51071#M2565</link>
      <description>&lt;P&gt;I don't want to create custom times. I want to limit how far back you can retrieve data from. E.g. I don't want users to see data before September 1st 2012 so if they choose 'Last 30 days' on the standard timerangepicker, it will not return data before September 1st 2012 although data exists for Aughust 31st 2012.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 09:58:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timerangepicker-earliest-problem/m-p/51071#M2565</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2012-09-05T09:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Timerangepicker earliest problem</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timerangepicker-earliest-problem/m-p/51072#M2566</link>
      <description>&lt;P&gt;i dont believe you can do that outside modifying the timerangepicker module code...but let's see if someone has other ideas.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 10:19:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timerangepicker-earliest-problem/m-p/51072#M2566</guid>
      <dc:creator>MarioM</dc:creator>
      <dc:date>2012-09-05T10:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Timerangepicker earliest problem</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timerangepicker-earliest-problem/m-p/51073#M2567</link>
      <description>&lt;P&gt;Either don't store it or you will need to either modify timerangepicker (as MarioM suggests) or write a custom module to filter the timerange. Or don't store the data.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 10:22:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timerangepicker-earliest-problem/m-p/51073#M2567</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2012-09-05T10:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Timerangepicker earliest problem</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timerangepicker-earliest-problem/m-p/51074#M2568</link>
      <description>&lt;P&gt;I solved the same problem by inserting a time filtering clause into my main search.  Then you can use TimeRangePicker after the search and it will work.&lt;/P&gt;

&lt;P&gt;Here is how the Advanced XML code sample looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt; module name="Search" autoRun="False" &amp;gt;
              &amp;lt; param name="search" &amp;gt;
                sourcetype="Updates" UpdateSet="$UpdateSet$" UpdateName="$UpdateName$"
                table _time, UpdateSize |
                eval epoch = strptime("06/01/2012:12:00:00", "%m/%d/%Y:%H:%M:%S") | where _time &amp;gt; epoch
              &amp;lt; /param &amp;gt;    
              &amp;lt; module name="TimeRangePicker" &amp;gt;
                &amp;lt; param name="label" &amp;gt; Time range: &amp;lt; /param &amp;gt;
                &amp;lt; param name="selected" &amp;gt; Last 7 days &amp;lt; /param &amp;gt;
                &amp;lt; param name="searchWhenChanged" &amp;gt; false &amp;lt; /param &amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Oct 2012 16:08:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timerangepicker-earliest-problem/m-p/51074#M2568</guid>
      <dc:creator>greg</dc:creator>
      <dc:date>2012-10-29T16:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Timerangepicker earliest problem</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timerangepicker-earliest-problem/m-p/51075#M2569</link>
      <description>&lt;P&gt;Well,   one advanced but unobtrusive way to do this, at least given that you're already in a custom view,    is to use the head command with a predicate. &lt;/P&gt;

&lt;P&gt;The head command can be given a condition basically, and when it hits that condition it shuts down the streaming portion of the search. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;other search terms&amp;gt; | eval nevermore = strptime("06/01/2012:12:00:00", "%m/%d/%Y:%H:%M:%S") | head (_time&amp;gt;nevermore) | fields - nevermore
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However if the search terms appearing before have any non-streaming commands, you might be careful.  I think that head will shut down the streaming portion even if it's itself inserted into the search pipeline after the end of the streaming portion,  but again you might keep an eye on that. &lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2012 20:31:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timerangepicker-earliest-problem/m-p/51075#M2569</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2012-10-29T20:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Timerangepicker earliest problem</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timerangepicker-earliest-problem/m-p/51076#M2570</link>
      <description>&lt;P&gt;Thanks. This question has also been answered here: &lt;A href="http://splunk-base.splunk.com/answers/57684/limit-how-far-back-you-can-retrieve-data-regardless-of-timerangepicker-selection"&gt;http://splunk-base.splunk.com/answers/57684/limit-how-far-back-you-can-retrieve-data-regardless-of-timerangepicker-selection&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2012 10:24:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timerangepicker-earliest-problem/m-p/51076#M2570</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2012-10-30T10:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Timerangepicker earliest problem</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timerangepicker-earliest-problem/m-p/51077#M2571</link>
      <description>&lt;P&gt;Thanks for responding&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2012 10:24:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timerangepicker-earliest-problem/m-p/51077#M2571</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2012-10-30T10:24:39Z</dc:date>
    </item>
  </channel>
</rss>

