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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...