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!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...