Dashboards & Visualizations

How could I check multiple condition(state) at <input> token?

Questioner
Path Finder

I want to combine these two <condition> into one.

<input>
.....
<change>
<condition value = "BT">
<unset token="show_wifi_connect_type"></unset>
</condition>
<condition value="UART">
<unset token="show_wifi_connect_type"></unset>
</condition>
</change>
...
</input>

I tried combine these two status using "match", but it doesn't work.
How could I solve this problem?

Labels (1)
Tags (2)
0 Karma
1 Solution

dtburrows3
Builder

I believe this should do it.

<input>
.....
  <change>
    <condition match="'value'==&quot;BT&quot; OR 'value'==&quot;UART&quot;">
        <unset token="show_wifi_connect_type"></unset>
    </condition>
   </change>
...
</input>

 
You can see on the screenshots it worked as expected when testing locally.

dtburrows3_0-1703773137637.png

dtburrows3_1-1703773155945.png

dtburrows3_2-1703773171653.png

 

View solution in original post

Questioner
Path Finder

@dtburrows3  Thank you for your support!

It work!

0 Karma

dtburrows3
Builder

I believe this should do it.

<input>
.....
  <change>
    <condition match="'value'==&quot;BT&quot; OR 'value'==&quot;UART&quot;">
        <unset token="show_wifi_connect_type"></unset>
    </condition>
   </change>
...
</input>

 
You can see on the screenshots it worked as expected when testing locally.

dtburrows3_0-1703773137637.png

dtburrows3_1-1703773155945.png

dtburrows3_2-1703773171653.png

 

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!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...