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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...