Splunk Search

Multiselect values as table input?

matstap
Communicator

I have a multiselect dropdown. I also have a stat table which utilizes a KVstore. I want the multiselect values to filter the table How do I do this?

The multiselect has the token $product$. The table is just a column from a KVstore:

| inputlookup product_color.csv 
|search product="$product$"
| table color

Do I have to do something to $product$ before using it as a filter if there are multiple values?

0 Karma
1 Solution

somesoni2
Revered Legend

Follow example from below link to setup your multiselect to user valuePrefix, valueSuffix and delimiter (basically replace sourcetype with product in the example code for multiselect input) and change your query like this

| inputlookup product_color.csv | search $prodct$ | table color

http://docs.splunk.com/Documentation/Splunk/7.0.3/Viz/tokens#Multiselect_input_example

View solution in original post

somesoni2
Revered Legend

Follow example from below link to setup your multiselect to user valuePrefix, valueSuffix and delimiter (basically replace sourcetype with product in the example code for multiselect input) and change your query like this

| inputlookup product_color.csv | search $prodct$ | table color

http://docs.splunk.com/Documentation/Splunk/7.0.3/Viz/tokens#Multiselect_input_example

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...