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!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...

[Puzzles] Solve, Learn, Repeat: Dereferencing XML to Fixed-length events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

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

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...