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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...