Getting Data In

Why is Dropdown in Dashboard Only Showing One Word Results?

ryanadamski
Engager

Hello,

Anyone have any idea why a dropdown filter would only show results for one word field result? I need the dropdown to work with field results of more than one word. 

0 Karma
1 Solution

bowesmana
SplunkTrust
SplunkTrust

Need as little more information to work with here...

I am guessing that this could be something to do with quoting, i.e. if you want to search for a drop down phrase

hello world

and your token is my_choice, then in your search, if you are using

search... my_field=$my_choice$

then Splunk will be searching

my_field=hello world

and you want it to search

my_field="hello world"

so to do that, you should use the |s token suffix, which instructs Splunk to quote the result, i.e.

search... my_field=$my_choice|s$

View solution in original post

ryanadamski
Engager

bowesmana, 

Thanks for the solution. Worked like a charm!

0 Karma

bowesmana
SplunkTrust
SplunkTrust

Need as little more information to work with here...

I am guessing that this could be something to do with quoting, i.e. if you want to search for a drop down phrase

hello world

and your token is my_choice, then in your search, if you are using

search... my_field=$my_choice$

then Splunk will be searching

my_field=hello world

and you want it to search

my_field="hello world"

so to do that, you should use the |s token suffix, which instructs Splunk to quote the result, i.e.

search... my_field=$my_choice|s$
Get Updates on the Splunk Community!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Building Momentum: Splunk Developer Program at .conf25

At Splunk, developers are at the heart of innovation. That’s why this year at .conf25, we officially launched ...