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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...