Dashboards & Visualizations

How to get a dashboard input token to handle values that contain spaces?

Zerophage
New Member

Hi all, new to Splunk.

I have a Dashboard Input with a token which is assigned a value which can be a string with spaces. For example it might be a subject of an email like "RE: How was work".

Now I have a search in the same dashboard which uses that token like message_subject=$search_subject$ but it returns nothing. I suspect it is due to the spaces in the value and i need to add quotes to the token.

Is there an easy way to do this?

Thanks!

Tags (3)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi Zerophage,
if spaces are the problem, try using brackets:

message_subject="$search_subject$"

Bye.
Giuseppe

View solution in original post

Zerophage
New Member

Thanks! Why did I not think of that, was trying all sorts other than the most obvious haha.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi Zerophage,
if spaces are the problem, try using brackets:

message_subject="$search_subject$"

Bye.
Giuseppe

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...