Dashboards & Visualizations

HTML Dashboard: Why is search not submitting using map tokens via SplunkJS?

David
Splunk Employee
Splunk Employee

I'm writing an HTML Dashboard via SplunkJS that leverages the map command. This entails using $tokens$ inside of the search, and when I do that, the search will never submit, with LastError = "Search is waiting for input." I've tried numerous variants of escaping the $ so that SplunkJS will submit the job, but to no avail. Can anyone offer the trick for this?

1 Solution

tom_frotscher
Builder

Hi, have you already used the token safe syntax?

Here are some examples:

http://dev.splunk.com/view/SP-CAAAEWY

View solution in original post

tom_frotscher
Builder

Hi, have you already used the token safe syntax?

Here are some examples:

http://dev.splunk.com/view/SP-CAAAEWY

David
Splunk Employee
Splunk Employee

I somehow hadn't found this page, though clearly I should have. Thank you, Tom!

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

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

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...