<?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: How can I use a dashboard timepicker across two timeranges and a subsearch in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-a-dashboard-timepicker-across-two-timeranges-and-a/m-p/443662#M125852</link>
    <description>&lt;P&gt;I just solved a very similar problem.. I created a hidden panel in a dashboard which accepts the value from the timerange picker, and its output would look like &lt;CODE&gt;earliest=&amp;lt;epoch&amp;gt; AND latest=&amp;lt;epoch&amp;gt;&lt;/CODE&gt; then used a token to pass this to the subsearch &lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/664666/how-to-add-seconds-to-epoch-time-using-time-modifi.html"&gt;https://answers.splunk.com/answers/664666/how-to-add-seconds-to-epoch-time-using-time-modifi.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jul 2018 11:47:11 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2018-07-13T11:47:11Z</dc:date>
    <item>
      <title>How can I use a dashboard timepicker across two timeranges and a subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-a-dashboard-timepicker-across-two-timeranges-and-a/m-p/443661#M125851</link>
      <description>&lt;P&gt;I have a complex search query that is quite slow when run over a longer period of time. It populates a dashboard.&lt;BR /&gt;
To improve the dashboard's performance, I'm using a summary index which is supplemented with yesterday's data every night but I also want to include today's data within the dashbaord.&lt;/P&gt;

&lt;P&gt;To do this, my dashboard has a search like this:&lt;/P&gt;

&lt;P&gt;Index=mysummary&lt;BR /&gt;
|  appendpipe &lt;BR /&gt;
    [ search index=mydata earliest=@d &lt;LOTS of="" other="" stuff="" done="" here=""&gt; ]&lt;BR /&gt;
| table my, fields, here&lt;/LOTS&gt;&lt;/P&gt;

&lt;P&gt;This works fine with the timepicker so long as latest is always now. If I choose something like "Previous week" in the timepicker on the dashboard, I still get today's data appended because of the "@d" in the subsearch.&lt;/P&gt;

&lt;P&gt;How can I modify the subsearch to only include today's data if today falls within the range of the timepickers time wndow?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 10:33:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-a-dashboard-timepicker-across-two-timeranges-and-a/m-p/443661#M125851</guid>
      <dc:creator>pwild_splunk</dc:creator>
      <dc:date>2018-07-13T10:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use a dashboard timepicker across two timeranges and a subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-a-dashboard-timepicker-across-two-timeranges-and-a/m-p/443662#M125852</link>
      <description>&lt;P&gt;I just solved a very similar problem.. I created a hidden panel in a dashboard which accepts the value from the timerange picker, and its output would look like &lt;CODE&gt;earliest=&amp;lt;epoch&amp;gt; AND latest=&amp;lt;epoch&amp;gt;&lt;/CODE&gt; then used a token to pass this to the subsearch &lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/664666/how-to-add-seconds-to-epoch-time-using-time-modifi.html"&gt;https://answers.splunk.com/answers/664666/how-to-add-seconds-to-epoch-time-using-time-modifi.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 11:47:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-a-dashboard-timepicker-across-two-timeranges-and-a/m-p/443662#M125852</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-07-13T11:47:11Z</dc:date>
    </item>
  </channel>
</rss>

