Splunk Search

How to assign multiple values to the same checkbox

Explorer

Hey Splunkers,

Currently, I have 3 checkboxes to filter data for the panel.

eg: My checkbox names are : Critical, Major and Minor

NameValue
CriticalSev 1
MajorSev 2
MinorSev 3

Based on the severity, the panel searches for all the respective tickets.

I want to add 2 values in the checkbox, is there a way i can add two values to one checkbox?

NameValue1Value2
CriticalSev 1 
MajorSev 2Sev 3
MinorSev 4Sev 5

 

Or an alternative way to implement this please?

Thanks in advance.

Labels (1)
0 Karma

SplunkTrust
SplunkTrust

Are you looking for something similar to

<form>
  <label>Check Boxes</label>
  <fieldset submitButton="false">
    <input type="checkbox" token="critical">
      <label>Critical</label>
      <choice value="Sev 1">Sev 1</choice>
    </input>
    <input type="checkbox" token="Major">
      <label>Major</label>
      <choice value="Sev2">Sev2</choice>
      <choice value="Sev3">Sev3</choice>
      <delimiter> OR </delimiter>
    </input>
    <input type="checkbox" token="minor">
      <label>Minor</label>
      <choice value="Sev4">Sev4</choice>
      <choice value="Sev5">Sev5</choice>
      <delimiter> OR </delimiter>
    </input>
  </fieldset>
</form>

you need to adjust the delimiter and prefix & suffix part according to your requirement in search.

Otherwise, please share your dashboard snippet and state what you are trying to achieve.

Thanks

0 Karma