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!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

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