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!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...