<?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 do I hide a panel in my dashboard that is displaying &amp;quot;no results found&amp;quot; and that is being populated by a base search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-hide-a-panel-in-my-dashboard-that-is-displaying-quot-no/m-p/452713#M128183</link>
    <description>&lt;P&gt;Hi DalJeanis, &lt;BR /&gt;
I've actually had to remove the base search from my dashboard, that was the only way that this could work for me. Thanks for your input on this! &lt;/P&gt;</description>
    <pubDate>Mon, 26 Nov 2018 20:30:45 GMT</pubDate>
    <dc:creator>adale25</dc:creator>
    <dc:date>2018-11-26T20:30:45Z</dc:date>
    <item>
      <title>How do I hide a panel in my dashboard that is displaying "no results found" and that is being populated by a base search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-hide-a-panel-in-my-dashboard-that-is-displaying-quot-no/m-p/452709#M128179</link>
      <description>&lt;P&gt;I have successfully implemented hiding panels in a dashboard that I'm not using base searches. But, when I apply the same logic to a base search run dashboard, I'm not getting the expected results.&lt;/P&gt;

&lt;P&gt;Any clues as to why this is? &lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 15:18:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-hide-a-panel-in-my-dashboard-that-is-displaying-quot-no/m-p/452709#M128179</guid>
      <dc:creator>adale25</dc:creator>
      <dc:date>2018-10-25T15:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I hide a panel in my dashboard that is displaying "no results found" and that is being populated by a base search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-hide-a-panel-in-my-dashboard-that-is-displaying-quot-no/m-p/452710#M128180</link>
      <description>&lt;P&gt;In your base search query you can use the below code to set and unset tokens, based on which you can add depends to your panel that needs to be hidden&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;done&amp;gt;
            &amp;lt;condition match="'job.resultCount' &amp;gt;0"&amp;gt;
                &amp;lt;set token="show"&amp;gt;true&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition&amp;gt;
                &amp;lt;unset token="show"/&amp;gt;
            &amp;lt;/condition&amp;gt;
        &amp;lt;/done&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Oct 2018 16:08:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-hide-a-panel-in-my-dashboard-that-is-displaying-quot-no/m-p/452710#M128180</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-10-25T16:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I hide a panel in my dashboard that is displaying "no results found" and that is being populated by a base search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-hide-a-panel-in-my-dashboard-that-is-displaying-quot-no/m-p/452711#M128181</link>
      <description>&lt;P&gt;Not sure what you mean by a "base search run dashboard".  &lt;/P&gt;

&lt;P&gt;A base search does not have to be in a displayable location.  If you are getting inconsistent results when the base search is inside a panel, then move it outside the panel, and use a postprocessing search (doing nothing) with that as the base search. within the panel.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 17:06:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-hide-a-panel-in-my-dashboard-that-is-displaying-quot-no/m-p/452711#M128181</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-10-25T17:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I hide a panel in my dashboard that is displaying "no results found" and that is being populated by a base search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-hide-a-panel-in-my-dashboard-that-is-displaying-quot-no/m-p/452712#M128182</link>
      <description>&lt;P&gt;Hi Vijeta, &lt;BR /&gt;
The above code isn't working for me. When I apply this to my search string it hides panels even if they have content. I've tried this with using the "done" tag, like you had specified, as well as using the "progress" tag, and still no luck. Please see my code below. Thanks! &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;panel depends="$panel_show$"&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Top 5 Count of CPU Utilization &amp;amp;gt; 80% by Host&amp;lt;/title&amp;gt;
        &amp;lt;search base="indexos"&amp;gt;
          &amp;lt;query&amp;gt;| where Percent_CPU_Load &amp;amp;gt; 80
| stats count by host
| sort - count
|  head 5&amp;lt;/query&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;condition match="'job.resultCount' &amp;amp;gt; 0"&amp;gt;
              &amp;lt;set token="panel_show"&amp;gt;true&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition&amp;gt;
              &amp;lt;unset token="panel_show"&amp;gt;&amp;lt;/unset&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Nov 2018 18:14:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-hide-a-panel-in-my-dashboard-that-is-displaying-quot-no/m-p/452712#M128182</guid>
      <dc:creator>adale25</dc:creator>
      <dc:date>2018-11-20T18:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I hide a panel in my dashboard that is displaying "no results found" and that is being populated by a base search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-hide-a-panel-in-my-dashboard-that-is-displaying-quot-no/m-p/452713#M128183</link>
      <description>&lt;P&gt;Hi DalJeanis, &lt;BR /&gt;
I've actually had to remove the base search from my dashboard, that was the only way that this could work for me. Thanks for your input on this! &lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 20:30:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-hide-a-panel-in-my-dashboard-that-is-displaying-quot-no/m-p/452713#M128183</guid>
      <dc:creator>adale25</dc:creator>
      <dc:date>2018-11-26T20:30:45Z</dc:date>
    </item>
  </channel>
</rss>

