Dashboards & Visualizations

Tokens for multiselect inputs

abovebeyond
Communicator

Hi, im trying to create a multiple select checkbox with parameters

My checkbox looks like:

 <input type="checkbox" token="EventCode">
      <label>Event Code:</label>
      <choice value="'ERROR'">ERROR</choice>
      <choice value="'Success'">Success</choice>
      <choice value="'NoValue'">NoValue</choice>
      <default>'ERROR', 'NoValue'</default>
      <valueSuffix>,</valueSuffix>
   </input> 

My search is a DBQEURY:

 | dbquery "MYDB" "select * 
from [dbo].[Mytable]
where NotificationEventCode in ($EventCode$)
order by id desc"

While try to search my search looks like:
"and NotificationEventCode in ('ERROR', 'NoValue',)

How can i remove the "," in the end?

Thanks!

0 Karma
1 Solution

abovebeyond
Communicator

I use "delimiter" instead , problem solved 🙂

View solution in original post

0 Karma

abovebeyond
Communicator

I use "delimiter" instead , problem solved 🙂

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...