<?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 to specify different time ranges for each panel on a dashboard using only one base search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-different-time-ranges-for-each-panel-on-a/m-p/211812#M61950</link>
    <description>&lt;OL&gt;
&lt;LI&gt;Run your base search and save it as a report. Let say &lt;STRONG&gt;top_errors&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Reference your report like this:&lt;/P&gt;

&lt;P&gt;&lt;DASHBOARD&gt;&lt;BR /&gt;
          &lt;LABEL&gt;Search from report&lt;/LABEL&gt;&lt;BR /&gt;
          &lt;ROW&gt;&lt;BR /&gt;
            &lt;PANEL&gt;&lt;BR /&gt;
              &lt;TITLE&gt;Original report&lt;/TITLE&gt;&lt;BR /&gt;
              &lt;CHART&gt;&lt;BR /&gt;
                &lt;TITLE&gt;Top Errors (Past 10 minutes)&lt;/TITLE&gt;&lt;/CHART&gt;&lt;/PANEL&gt;&lt;/ROW&gt;&lt;/DASHBOARD&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;            &amp;lt;search ref="top_errors" /&amp;gt;
              &amp;lt;!-- Modify time bounds --&amp;gt;
              &amp;lt;earliest&amp;gt;-10m&amp;lt;/earliest&amp;gt;
               &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;/chart&amp;gt;
        &amp;lt;/panel&amp;gt;
        &amp;lt;panel&amp;gt;
          &amp;lt;title&amp;gt;Modified time bounds and visualization&amp;lt;/title&amp;gt;
          &amp;lt;chart&amp;gt;
            &amp;lt;title&amp;gt;Top Errors (Past 4 hours)&amp;lt;/title&amp;gt;

            &amp;lt;search ref="top_errors"&amp;gt;

              &amp;lt;!-- Modify time bounds --&amp;gt;
                 &amp;lt;earliest&amp;gt;-4h&amp;lt;/earliest&amp;gt;
                 &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;

            &amp;lt;/search&amp;gt;

            &amp;lt;!-- Change visualization --&amp;gt;
            &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;

          &amp;lt;/chart&amp;gt;
        &amp;lt;/panel&amp;gt;
      &amp;lt;/row&amp;gt;
    &amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Thu, 21 Apr 2016 20:57:53 GMT</pubDate>
    <dc:creator>stephanefotso</dc:creator>
    <dc:date>2016-04-21T20:57:53Z</dc:date>
    <item>
      <title>How to specify different time ranges for each panel on a dashboard using only one base search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-different-time-ranges-for-each-panel-on-a/m-p/211806#M61944</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I'm trying to use a base search for different panels. I have this, but it's retrieving the same results in both panels. How do I specify different time ranges for each panel using only one search?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
    &amp;lt;label&amp;gt;My dashboard&amp;lt;/label&amp;gt;
    &amp;lt;description/&amp;gt;
    &amp;lt;search id="top_errors"&amp;gt;
        &amp;lt;query&amp;gt;index=A foo=X&amp;lt;/query&amp;gt;    
    &amp;lt;/search&amp;gt;
    &amp;lt;row&amp;gt;
        &amp;lt;panel&amp;gt;
            &amp;lt;table&amp;gt;
                &amp;lt;title&amp;gt;Top Errors (Past 10 minutes)&amp;lt;/title&amp;gt;
                &amp;lt;search base="top_errors"&amp;gt;
                    &amp;lt;earliest&amp;gt;-10m&amp;lt;/earliest&amp;gt;
                    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
                &amp;lt;/search&amp;gt;
            &amp;lt;/table&amp;gt;
        &amp;lt;/panel&amp;gt;
    &amp;lt;/row&amp;gt;
    &amp;lt;row&amp;gt;
        &amp;lt;panel&amp;gt;
            &amp;lt;table&amp;gt;
                &amp;lt;title&amp;gt;Top Errors (Past 4 hours)&amp;lt;/title&amp;gt;
                &amp;lt;search base="top_errors"&amp;gt;
                    &amp;lt;earliest&amp;gt;-4h&amp;lt;/earliest&amp;gt;
                    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
                &amp;lt;/search&amp;gt;
            &amp;lt;/table&amp;gt;
        &amp;lt;/panel&amp;gt;
    &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 17:30:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-different-time-ranges-for-each-panel-on-a/m-p/211806#M61944</guid>
      <dc:creator>marcosrios</dc:creator>
      <dc:date>2016-04-21T17:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify different time ranges for each panel on a dashboard using only one base search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-different-time-ranges-for-each-panel-on-a/m-p/211807#M61945</link>
      <description>&lt;P&gt;Hello! Add a &lt;STRONG&gt;query&lt;/STRONG&gt; tag to reformat results from a base search in your panels: eg&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;           &amp;lt;table&amp;gt;
                 &amp;lt;title&amp;gt;Top Errors (Past 10 minutes)&amp;lt;/title&amp;gt;
                 &amp;lt;search base="top_errors"&amp;gt;
                     &amp;lt;query&amp;gt;
                            search log_level=error | stats sum(count)  as count
                     &amp;lt;/query&amp;gt;
                     &amp;lt;earliest&amp;gt;-10m&amp;lt;/earliest&amp;gt;
                     &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
                 &amp;lt;/search&amp;gt;
             &amp;lt;/table&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For more informations, read Post-process examples here:  &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.0/Viz/Savedsearches"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.0/Viz/Savedsearches&lt;/A&gt;&lt;BR /&gt;
thanks&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 17:49:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-different-time-ranges-for-each-panel-on-a/m-p/211807#M61945</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2016-04-21T17:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify different time ranges for each panel on a dashboard using only one base search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-different-time-ranges-for-each-panel-on-a/m-p/211808#M61946</link>
      <description>&lt;P&gt;The only difference I have between the panels is the time range. I don't want to post process the search. &lt;BR /&gt;
Another question, if I set a base search, both two panel will retrieve the results from the base search right? Or they will do the same search independently?&lt;/P&gt;

&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 17:56:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-different-time-ranges-for-each-panel-on-a/m-p/211808#M61946</guid>
      <dc:creator>marcosrios</dc:creator>
      <dc:date>2016-04-21T17:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify different time ranges for each panel on a dashboard using only one base search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-different-time-ranges-for-each-panel-on-a/m-p/211809#M61947</link>
      <description>&lt;P&gt;Panels in the dashboard use a post-process search to further modify the results of a base search. The base search can be a global search for the dashboard or any other search within the dashboard. if you set a base search, both two panel will retrieve the results from the base search .&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 18:05:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-different-time-ranges-for-each-panel-on-a/m-p/211809#M61947</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2016-04-21T18:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify different time ranges for each panel on a dashboard using only one base search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-different-time-ranges-for-each-panel-on-a/m-p/211810#M61948</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Reference a search from a report&lt;/STRONG&gt; rom a report can help you: read it here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.0/Viz/Savedsearches"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.0/Viz/Savedsearches&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 18:35:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-different-time-ranges-for-each-panel-on-a/m-p/211810#M61948</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2016-04-21T18:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify different time ranges for each panel on a dashboard using only one base search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-different-time-ranges-for-each-panel-on-a/m-p/211811#M61949</link>
      <description>&lt;P&gt;Understood, but how can I filter the base result for a specific time range?&lt;/P&gt;

&lt;P&gt;Suppose that my base search gets results for last 4hs.&lt;BR /&gt;
In my panels I want to use the same search, but in one of the panels specify last 4hs and in the other the last 10 min.&lt;BR /&gt;
How may I achieve that?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 19:14:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-different-time-ranges-for-each-panel-on-a/m-p/211811#M61949</guid>
      <dc:creator>marcosrios</dc:creator>
      <dc:date>2016-04-21T19:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify different time ranges for each panel on a dashboard using only one base search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-different-time-ranges-for-each-panel-on-a/m-p/211812#M61950</link>
      <description>&lt;OL&gt;
&lt;LI&gt;Run your base search and save it as a report. Let say &lt;STRONG&gt;top_errors&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Reference your report like this:&lt;/P&gt;

&lt;P&gt;&lt;DASHBOARD&gt;&lt;BR /&gt;
          &lt;LABEL&gt;Search from report&lt;/LABEL&gt;&lt;BR /&gt;
          &lt;ROW&gt;&lt;BR /&gt;
            &lt;PANEL&gt;&lt;BR /&gt;
              &lt;TITLE&gt;Original report&lt;/TITLE&gt;&lt;BR /&gt;
              &lt;CHART&gt;&lt;BR /&gt;
                &lt;TITLE&gt;Top Errors (Past 10 minutes)&lt;/TITLE&gt;&lt;/CHART&gt;&lt;/PANEL&gt;&lt;/ROW&gt;&lt;/DASHBOARD&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;            &amp;lt;search ref="top_errors" /&amp;gt;
              &amp;lt;!-- Modify time bounds --&amp;gt;
              &amp;lt;earliest&amp;gt;-10m&amp;lt;/earliest&amp;gt;
               &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;/chart&amp;gt;
        &amp;lt;/panel&amp;gt;
        &amp;lt;panel&amp;gt;
          &amp;lt;title&amp;gt;Modified time bounds and visualization&amp;lt;/title&amp;gt;
          &amp;lt;chart&amp;gt;
            &amp;lt;title&amp;gt;Top Errors (Past 4 hours)&amp;lt;/title&amp;gt;

            &amp;lt;search ref="top_errors"&amp;gt;

              &amp;lt;!-- Modify time bounds --&amp;gt;
                 &amp;lt;earliest&amp;gt;-4h&amp;lt;/earliest&amp;gt;
                 &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;

            &amp;lt;/search&amp;gt;

            &amp;lt;!-- Change visualization --&amp;gt;
            &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;

          &amp;lt;/chart&amp;gt;
        &amp;lt;/panel&amp;gt;
      &amp;lt;/row&amp;gt;
    &amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 21 Apr 2016 20:57:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-different-time-ranges-for-each-panel-on-a/m-p/211812#M61950</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2016-04-21T20:57:53Z</dc:date>
    </item>
  </channel>
</rss>

