<?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 make panel depend on token value? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/326844#M21176</link>
    <description>&lt;P&gt;Excellent example. &lt;/P&gt;

&lt;P&gt;I am looking for option/setting which would make the panel execute the search only on certain condition. &lt;/P&gt;

&lt;P&gt;Right now, the searches run with default values and they cause the dashboard to take a very long time and heavy load on the SH.&lt;/P&gt;

&lt;P&gt;Suggestions and guidance much appreciated.&lt;/P&gt;

&lt;P&gt;-MV&lt;/P&gt;</description>
    <pubDate>Tue, 18 Dec 2018 13:42:33 GMT</pubDate>
    <dc:creator>mvohra_arcusdat</dc:creator>
    <dc:date>2018-12-18T13:42:33Z</dc:date>
    <item>
      <title>How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/326839#M21171</link>
      <description>&lt;P&gt;I have 10 panels on a dashboard. I want to have a dropdown menu to select which panel to see (hiding the rest). Say this dropdown has a token called panel_tok. Is there a way to make the panels depend on specific values of panel_tok? &lt;/P&gt;

&lt;P&gt;i.e., if I select "A" in the dropdown, only panel "A" should be visible.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:58:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/326839#M21171</guid>
      <dc:creator>matstap</dc:creator>
      <dc:date>2020-09-29T18:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/326840#M21172</link>
      <description>&lt;P&gt;@matstap, following are couple of options you have! Try the run anywhere dashboard examples.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Option 1:&lt;/STRONG&gt; set only one depends token on selection of the corresponding panel. At the same time the tokens for other panels should be unset. You would also need to add a dependency of the token being set to specific Panel's Search query so that it runs only when the token is set. This is required since you one to run only 1 search when the dashboard loads, not 10.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;form&amp;gt;
      &amp;lt;label&amp;gt;Option 1: Dropdown to Show Specific Panel and Hide Others&amp;lt;/label&amp;gt;
      &amp;lt;fieldset submitButton="false"&amp;gt;
        &amp;lt;input type="dropdown" token="tokShowHidePanel" searchWhenChanged="true"&amp;gt;
          &amp;lt;label&amp;gt;Display Panel&amp;lt;/label&amp;gt;
          &amp;lt;choice value="panelA"&amp;gt;Panel A&amp;lt;/choice&amp;gt;
          &amp;lt;choice value="panelB"&amp;gt;Panel B&amp;lt;/choice&amp;gt;
          &amp;lt;choice value="panelC"&amp;gt;Panel C&amp;lt;/choice&amp;gt;
          &amp;lt;default&amp;gt;panelA&amp;lt;/default&amp;gt;
          &amp;lt;change&amp;gt;
            &amp;lt;condition value="panelA"&amp;gt;
              &amp;lt;set token="tokShowPanelA"&amp;gt;true&amp;lt;/set&amp;gt;
              &amp;lt;unset token="tokShowPanelB"&amp;gt;&amp;lt;/unset&amp;gt;
              &amp;lt;unset token="tokShowPanelC"&amp;gt;&amp;lt;/unset&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition value="panelB"&amp;gt;
              &amp;lt;unset token="tokShowPanelA"&amp;gt;&amp;lt;/unset&amp;gt;
              &amp;lt;set token="tokShowPanelB"&amp;gt;true&amp;lt;/set&amp;gt;
              &amp;lt;unset token="tokShowPanelC"&amp;gt;&amp;lt;/unset&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition value="panelC"&amp;gt;
              &amp;lt;unset token="tokShowPanelA"&amp;gt;&amp;lt;/unset&amp;gt;
              &amp;lt;unset token="tokShowPanelB"&amp;gt;&amp;lt;/unset&amp;gt;
              &amp;lt;set token="tokShowPanelC"&amp;gt;true&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/change&amp;gt;
        &amp;lt;/input&amp;gt;
        &amp;lt;input type="time" token="tokTime" searchWhenChanged="true"&amp;gt;
          &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
          &amp;lt;default&amp;gt;
            &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
            &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;/default&amp;gt;
        &amp;lt;/input&amp;gt;
      &amp;lt;/fieldset&amp;gt;
      &amp;lt;row&amp;gt;
        &amp;lt;panel depends="$tokShowPanelA$"&amp;gt;
          &amp;lt;title&amp;gt;Panel A - INFO&amp;lt;/title&amp;gt;
          &amp;lt;chart&amp;gt;
            &amp;lt;search&amp;gt;
              &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level="INFO"
    | timechart count by component useother=f usenull=f limit=5
    | eval dummy="$tokShowPanelA$"
    | fields - "$tokShowPanelA$"&amp;lt;/query&amp;gt;
              &amp;lt;earliest&amp;gt;$tokTime.earliest$&amp;lt;/earliest&amp;gt;
              &amp;lt;latest&amp;gt;$tokTime.latest$&amp;lt;/latest&amp;gt;
            &amp;lt;/search&amp;gt;
            &amp;lt;option name="charting.chart"&amp;gt;area&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
            &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
          &amp;lt;/chart&amp;gt;
        &amp;lt;/panel&amp;gt;
        &amp;lt;panel depends="$tokShowPanelB$"&amp;gt;
          &amp;lt;title&amp;gt;Panel B - WARN&amp;lt;/title&amp;gt;
          &amp;lt;chart&amp;gt;
            &amp;lt;search&amp;gt;
              &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level="WARN"
    | timechart count by component useother=f usenull=f limit=5
    | eval dummy="$tokShowPanelB$"
    | fields - "$tokShowPanelB$"&amp;lt;/query&amp;gt;
              &amp;lt;earliest&amp;gt;$tokTime.earliest$&amp;lt;/earliest&amp;gt;
              &amp;lt;latest&amp;gt;$tokTime.latest$&amp;lt;/latest&amp;gt;
            &amp;lt;/search&amp;gt;
            &amp;lt;option name="charting.chart"&amp;gt;area&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
            &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
          &amp;lt;/chart&amp;gt;
        &amp;lt;/panel&amp;gt;
        &amp;lt;panel depends="$tokShowPanelC$"&amp;gt;
          &amp;lt;title&amp;gt;Panel C - ERROR&amp;lt;/title&amp;gt;
          &amp;lt;chart&amp;gt;
            &amp;lt;search&amp;gt;
              &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level="ERROR"
    | timechart count by component useother=f usenull=f limit=5
    | eval dummy="$tokShowPanelC$"
    | fields - "$tokShowPanelC$"&amp;lt;/query&amp;gt;
              &amp;lt;earliest&amp;gt;$tokTime.earliest$&amp;lt;/earliest&amp;gt;
              &amp;lt;latest&amp;gt;$tokTime.latest$&amp;lt;/latest&amp;gt;
            &amp;lt;/search&amp;gt;
            &amp;lt;option name="charting.chart"&amp;gt;area&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
            &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
          &amp;lt;/chart&amp;gt;
        &amp;lt;/panel&amp;gt;
      &amp;lt;/row&amp;gt;
    &amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Option 2:&lt;/STRONG&gt;&lt;BR /&gt;
Set the Query to be run in Specific Panel in the dropdown change event handler. Keep only one panel and run the specific query.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Option 2: Dropdown to Show Specific Panel and Hide Others&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="tokShowHidePanel" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Display Panel&amp;lt;/label&amp;gt;
      &amp;lt;choice value="panelA"&amp;gt;Panel A - INFO&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="panelB"&amp;gt;Panel B - WARN&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="panelC"&amp;gt;Panel C - ERROR&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;panelA&amp;lt;/default&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition value="panelA"&amp;gt;
          &amp;lt;set token="tokShowPanelQuery"&amp;gt;index=_internal sourcetype=splunkd log_level=&amp;amp;quot;INFO&amp;amp;quot;| timechart count by component useother=f usenull=f limit=5&amp;lt;/set&amp;gt;
          &amp;lt;set token="tokPanelTitle"&amp;gt;$label$&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="panelB"&amp;gt;
          &amp;lt;set token="tokShowPanelQuery"&amp;gt;index=_internal sourcetype=splunkd log_level=&amp;amp;quot;WARN&amp;amp;quot;| timechart count by component useother=f usenull=f limit=5&amp;lt;/set&amp;gt;
          &amp;lt;set token="tokPanelTitle"&amp;gt;$label$&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="panelC"&amp;gt;
          &amp;lt;set token="tokShowPanelQuery"&amp;gt;index=_internal sourcetype=splunkd log_level=&amp;amp;quot;ERROR&amp;amp;quot;| timechart count by component useother=f usenull=f limit=5&amp;lt;/set&amp;gt;
          &amp;lt;set token="tokPanelTitle"&amp;gt;$label$&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="time" token="tokTime" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel depends="$tokPanelTitle$"&amp;gt;
      &amp;lt;title&amp;gt;$tokPanelTitle$&amp;lt;/title&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;$tokShowPanelQuery$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$tokTime.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$tokTime.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;area&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: I have used three Panels/Queries for Run anywhere Example, but you can extend to the 10 that you need.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 04:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/326840#M21172</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-04-11T04:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/326841#M21173</link>
      <description>&lt;P&gt;Minor typo fix for Option 1 - for the addition to the search queries so that the search only triggers when the token is set. Instead of this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    | eval dummy="$tokShowPanelA$"
     | fields - "$tokShowPanelA$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It should be this (i.e. the field to hide is dummy). Otherwise the dummy field does show up when the search is run:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    | eval dummy="$tokShowPanelA$"
     | fields - "dummy"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Oct 2018 18:54:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/326841#M21173</guid>
      <dc:creator>Ranazar</dc:creator>
      <dc:date>2018-10-11T18:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/326842#M21174</link>
      <description>&lt;P&gt;@Ranazar thanks for the correction. Got to know even better way to do this would be&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Option 1&lt;/STRONG&gt;)  Don't use eval just use the following. If the token does not exist search will not run. If the token exist fields - will not remove anything provided the existing search result does not have any field which may have same name as the value of token &lt;CODE&gt;$tokShowPanel$&lt;/CODE&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;     | fields - "$tokShowPanelA$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Option 2&lt;/STRONG&gt;) Use built in &lt;CODE&gt;comment&lt;/CODE&gt; macro in Splunk with the token dependency. The comment macro does not execute but adds the dependency with the token.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      `comment("RUN SEARCH ONLY WHEN $tokShowPanelA$ IS SET")`
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Oct 2018 11:08:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/326842#M21174</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-10-18T11:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/326843#M21175</link>
      <description>&lt;P&gt;Oh, that's just brilliant! I know there's documentation and dashboard examples that probably cover this sort of thing, but it's near impossible to find time for that. Coming across these posts is super helpful.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 15:34:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/326843#M21175</guid>
      <dc:creator>Ranazar</dc:creator>
      <dc:date>2018-10-19T15:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/326844#M21176</link>
      <description>&lt;P&gt;Excellent example. &lt;/P&gt;

&lt;P&gt;I am looking for option/setting which would make the panel execute the search only on certain condition. &lt;/P&gt;

&lt;P&gt;Right now, the searches run with default values and they cause the dashboard to take a very long time and heavy load on the SH.&lt;/P&gt;

&lt;P&gt;Suggestions and guidance much appreciated.&lt;/P&gt;

&lt;P&gt;-MV&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 13:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/326844#M21176</guid>
      <dc:creator>mvohra_arcusdat</dc:creator>
      <dc:date>2018-12-18T13:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/326845#M21177</link>
      <description>&lt;P&gt;I know this is quite an old post but the first to come up in google, I've confirmed that newer versions of Splunk allow:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search depends="$token$"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Newer versions of the &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML"&gt;Simple XML Reference documentation&lt;/A&gt; also states this...(I checked as far back as 7.0.0 and it appears to be there)&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 05:42:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/326845#M21177</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-01-22T05:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/517660#M34688</link>
      <description>&lt;P&gt;Hey there, I'm trying to implement this into one of my dashboards but have run into a problem.&lt;/P&gt;&lt;P&gt;I've implemented the option 2 and it works really well so far. However I would like to be able to not only select an option in the dropdown, but also by clicking on a value in another panel. And while I've implemented the drilldown, and the selected value shows up in my dropdown, the corresponding search is not getting executed. Instead the selected value is just getting added in the dropdown list although the same value is already existing.&lt;BR /&gt;Could anyone help me out here?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 07:42:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/517660#M34688</guid>
      <dc:creator>matthaeus</dc:creator>
      <dc:date>2020-09-03T07:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/627456#M51413</link>
      <description>&lt;P&gt;Not the most recent Topic, but it got shown first, so i'll post my approach here.&lt;BR /&gt;&lt;BR /&gt;Recently i had similar difficulties and ended up&amp;nbsp; with a solution with way less lines and without much &amp;lt;set&amp;gt; ans &amp;lt;unset&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Dropdown:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;input type="dropdown" token="dropdownTok" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;dropdown&amp;lt;/label&amp;gt;
      &amp;lt;choice value="all"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="1"&amp;gt;Entry1&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="2"&amp;gt;Entry2&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="3"&amp;gt;Entry3&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="4"&amp;gt;Entry4&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;eval token="DisplayPanel1"&amp;gt;if($value$="1",true(),if($value$="all",true(),null()))&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="DisplayPanel2"&amp;gt;if($value$="2",true(),if($value$="all",true(),null()))&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="DisplayPanel3"&amp;gt;if($value$="3",true(),if($value$="all",true(),null()))&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="DisplayPanel4"&amp;gt;if($value$="4",true(),if($value$="all",true(),null()))&amp;lt;/eval&amp;gt;
      &amp;lt;/change&amp;gt;
      &amp;lt;default&amp;gt;all&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;That couple of lines inside &amp;lt;change&amp;gt; allows to set/unset the Tokens without &amp;lt;condition&amp;gt;&lt;BR /&gt;I simply can u8se depends="$DisplayPanel2$" and that Row/Panel only shows up when all or Entry2 is selected&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 13:28:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/627456#M51413</guid>
      <dc:creator>TheEggi98</dc:creator>
      <dc:date>2023-01-18T13:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/634516#M52009</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I want to be able show more than one pannel at time Using a multiselect or check box is there any solution for&amp;nbsp;this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 06:25:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/634516#M52009</guid>
      <dc:creator>annisha26</dc:creator>
      <dc:date>2023-03-15T06:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/634524#M52010</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250202"&gt;@annisha26&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You can easily do that with the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;input type="multiselect" token="panelTok" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;select Panels to show&amp;lt;/label&amp;gt;
      &amp;lt;choice value="1"&amp;gt;Entry1&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="2"&amp;gt;Entry2&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="3"&amp;gt;Entry3&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="4"&amp;gt;Entry4&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;eval token="DisplayPanel1"&amp;gt;if(isnull(mvfind($panelTok$, "1")),null(),true())&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="DisplayPanel2"&amp;gt;if(isnull(mvfind($panelTok$, "2")),null(),true())&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="DisplayPanel3"&amp;gt;if(isnull(mvfind($panelTok$, "3")),null(),true())&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="DisplayPanel4"&amp;gt;if(isnull(mvfind($panelTok$, "4")),null(),true())&amp;lt;/eval&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 07:17:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/634524#M52010</guid>
      <dc:creator>TheEggi98</dc:creator>
      <dc:date>2023-03-15T07:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/634530#M52011</link>
      <description>&lt;P&gt;Note that &lt;STRONG&gt;&amp;lt;change&amp;gt;&lt;/STRONG&gt; is not officially supported for multiselect inputs, so it may not always work&lt;/P&gt;&lt;P&gt;Also, it's always a good idea to ask a new question and refer by link to an old thread if necessary - often old answered questions will not be seen and the original responders may not active any more to answer questions from that thread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 07:56:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/634530#M52011</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-03-15T07:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/634537#M52012</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238005"&gt;@TheEggi98&lt;/a&gt;&amp;nbsp; thank you will try this.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 09:03:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/634537#M52012</guid>
      <dc:creator>annisha26</dc:creator>
      <dc:date>2023-03-15T09:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/634543#M52016</link>
      <description>&lt;P&gt;Oh, I didnt knew that.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Where is that info?&lt;BR /&gt;In the Docs&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Viz/tokens#Define_tokens_for_conditional_operations_with_form_inputs" target="_blank" rel="noopener"&gt;Define tokens for conditional operations with form inputs&lt;/A&gt;&amp;nbsp;i cant find that info.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 09:46:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/634543#M52016</guid>
      <dc:creator>TheEggi98</dc:creator>
      <dc:date>2023-03-15T09:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/634656#M52021</link>
      <description>&lt;P&gt;It's documented here&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#input_.28form.29" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#input_.28form.29&lt;/A&gt;&lt;/P&gt;&lt;P&gt;in the&amp;nbsp;Shared input child elements section.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does seem to work generally, but I remember a couple of years ago finding a use case, where it did not work as expected, so I'm not totally sure if it really does or does not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 22:37:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/634656#M52021</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-03-15T22:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/653019#M53666</link>
      <description>&lt;P&gt;my recent experience in having&amp;nbsp; chained searches depending on token:&lt;/P&gt;&lt;P&gt;&amp;lt;search id="s1" base="mybasesearch" depends="$run$"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;query&amp;gt;| eval run="$run$"&lt;/P&gt;&lt;P&gt;...&amp;lt;/query&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/search&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;search base="s1"&amp;gt;...&amp;lt;/search&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 08:55:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/653019#M53666</guid>
      <dc:creator>carbdb</dc:creator>
      <dc:date>2023-08-03T08:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/668266#M54684</link>
      <description>&lt;P&gt;great answer, was very useful, thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 17:48:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/668266#M54684</guid>
      <dc:creator>tomapatan</dc:creator>
      <dc:date>2023-11-10T17:48:56Z</dc:date>
    </item>
  </channel>
</rss>

