Splunk Search

How to assign multiple values to the same checkbox

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

0 Karma

renjith_nair
Legend

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

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...