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.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...