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!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...