<?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: Is it possible to add &amp;quot;starting the search&amp;quot; to the link switcher option? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-add-quot-starting-the-search-quot-to-the-link/m-p/369447#M163033</link>
    <description>&lt;P&gt;glad to help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2018 13:40:01 GMT</pubDate>
    <dc:creator>493669</dc:creator>
    <dc:date>2018-02-08T13:40:01Z</dc:date>
    <item>
      <title>Is it possible to add "starting the search" to the link switcher option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-add-quot-starting-the-search-quot-to-the-link/m-p/369443#M163029</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I would like to implement some options to show/hide panels in a dashbaord.&lt;BR /&gt;
Currently the plan to have an option for each panel at the top of the dashboard, so that Splunk users can decide what they want to see.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt; input type="checkbox" token="panel_1" searchWhenChanged="true"&amp;gt;
         &amp;lt;label&amp;gt;Overview&amp;lt;/label&amp;gt;
         &amp;lt;choice value="true"&amp;gt;Show&amp;lt;/choice&amp;gt;
         &amp;lt;change&amp;gt;
           &amp;lt;condition label="Show"&amp;gt;
             &amp;lt;set token="panel_1"&amp;gt;true&amp;lt;/set&amp;gt;
           &amp;lt;/condition&amp;gt;
         &amp;lt;/change&amp;gt;
         &amp;lt;default&amp;gt;true&amp;lt;/default&amp;gt;
       &amp;lt;/input&amp;gt;

 &amp;lt; panel depends="$panel_1$"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As far as I understand this, Splunk is running ALL searches when I open the dashboard, no matter what is selected in this option. Is it possible to only start the search of a panel, when the user selects the show option? This would reduce loading times and load caused by the dashboard.&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 08:43:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-add-quot-starting-the-search-quot-to-the-link/m-p/369443#M163029</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2018-02-08T08:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add "starting the search" to the link switcher option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-add-quot-starting-the-search-quot-to-the-link/m-p/369444#M163030</link>
      <description>&lt;P&gt;have you looked below two answers?&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/222492/how-can-i-have-tabs-with-different-views-in-a-dash.html"&gt;https://answers.splunk.com/answers/222492/how-can-i-have-tabs-with-different-views-in-a-dash.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/349981/how-to-combine-2-dashboards-each-with-multiple-pan.html"&gt;https://answers.splunk.com/answers/349981/how-to-combine-2-dashboards-each-with-multiple-pan.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 08:59:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-add-quot-starting-the-search-quot-to-the-link/m-p/369444#M163030</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-02-08T08:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add "starting the search" to the link switcher option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-add-quot-starting-the-search-quot-to-the-link/m-p/369445#M163031</link>
      <description>&lt;P&gt;Hi @HeinzWaescher,&lt;BR /&gt;
Basically your search meeting the token criteria before your &lt;CODE&gt;depends&lt;/CODE&gt; clause.&lt;BR /&gt;
so In you panel query add your token in eval statement so that it will wait for input and not run the query until depends token is set.&lt;BR /&gt;
try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt; input type="checkbox" token="panel_1" searchWhenChanged="true"&amp;gt;
          &amp;lt;label&amp;gt;Overview&amp;lt;/label&amp;gt;
          &amp;lt;choice value="true"&amp;gt;Show&amp;lt;/choice&amp;gt;
          &amp;lt;change&amp;gt;
            &amp;lt;condition label="Show"&amp;gt;
              &amp;lt;set token="panel_1"&amp;gt;true&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/change&amp;gt;
          &amp;lt;default&amp;gt;true&amp;lt;/default&amp;gt;
        &amp;lt;/input&amp;gt;
  &amp;lt; panel depends="$panel_1$"&amp;gt;
:
:
&amp;lt;query&amp;gt; index=&amp;lt;indexname&amp;gt;|eval temp="$panel_1$"|...remaining query|table &amp;lt;required fields&amp;gt;&amp;lt;/query&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Feb 2018 13:09:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-add-quot-starting-the-search-quot-to-the-link/m-p/369445#M163031</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-08T13:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add "starting the search" to the link switcher option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-add-quot-starting-the-search-quot-to-the-link/m-p/369446#M163032</link>
      <description>&lt;P&gt;Very nice approach to add a "useless" token into the search query &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; That solves my issue, thanks a lot!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 13:39:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-add-quot-starting-the-search-quot-to-the-link/m-p/369446#M163032</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2018-02-08T13:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add "starting the search" to the link switcher option?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-add-quot-starting-the-search-quot-to-the-link/m-p/369447#M163033</link>
      <description>&lt;P&gt;glad to help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 13:40:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-add-quot-starting-the-search-quot-to-the-link/m-p/369447#M163033</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-08T13:40:01Z</dc:date>
    </item>
  </channel>
</rss>

