Getting Data In

Using Multiple Values for a Single Choice in a DropDown Input

_gkollias
Builder

Hi All,

Is there a way to add multiple values in a drop down to a single choice? For example, I have a drop down with multiple values which really should be under the same status. Here is my example below:

        <label>Select a status:</label>
        <default>*</default>
        <choice value="*">All</choice>
        <choice value="SUCCESS">SUCCESS</choice>
        <choice value="FAILED">FAILURE</choice>
        <choice value="FAIL">FAILURE</choice>
        <choice value="FAILURE">FAILURE</choice>
    </input>

Is there a way to combine the three failures so that they all fall under "FAILURE"?

Thanks in advance!

Tags (2)

tom_frotscher
Builder

Hi!

Is there something like a field "status" and you use this choice as: status=$status$ in your corresponding search? If so, you could put something like this in as value:

 <label>Select a status:</label>
<default>status=*</default>
<choice value="status=*">All</choice>
<choice value="status=SUCCESS">SUCCESS</choice>
<choice value="status=FAILED OR status=FAIL OR status=FAILURE">FAILURE</choice>
</input>

and in your search you do not use status=$status$, instead you just use $status$.

Greetings

Tom

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

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, ...