Splunk Search

Input Filter and the supporting panels

prettysunshinez
Explorer

I have a dropdown(say field A) as input to a dashboard.

And this dropdown value is passed/used only in certain panels in the dashboard.

The other panels(where this field value is not used) should be displayed as normal when the dropdown value is "*"

But when the dropdown value other than "*" is selected,then these others panels should be displayed in grey color..

Note : the panels where the dropdown values is not used are single value charts,and they are displayed in green,amber and red depending on the values it display..But when the dropdown value other than "*" is selected,it should be greyed out.

Kindly help

 

Labels (1)
Tags (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Try adding conditions to your inputs.  The condition would be "$foo$=*".  If it passes then it sets another token, like show_other_panels; if the condition fails then it clears the token.  The other panels would be dependent on the "show_other_panels" token.

---
If this reply helps you, Karma would be appreciated.
0 Karma

prettysunshinez
Explorer

I tried this.

<change>

<condition label="ALL">

<set token="color">"red","green","yellow"</set>

</condition>

<condition label!="ALL">

<set token="color">"red","green","yellow"</set>

</condition>

</change>

 

But am unable to give label!="ALL".

It is throwing an error

 

 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I'm not that strong with this so these suggestions may not help.  My first thought is to set the color to a default value first and change it if "ALL" is selected.

 

<init>
  <set token="color">non-ALL value</set>
</init>
...
<change>
  <condition label="ALL">
    <set token="color">"red","green","yellow"</set>
  </condition>
</change>

 

 My second thought is to try the match function.

 

<change>
  <condition label="ALL">
    <set token="color">"red","green","yellow"</set>
  </condition>
  <condition match="foo!='ALL'">
    <set token="color">"red","green","yellow"</set>
  </condition>
</change>

 

---
If this reply helps you, Karma would be appreciated.
0 Karma

prettysunshinez
Explorer

Thanks.

Could you show me how to do that please.

 

Tags (1)
0 Karma
Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...