Dashboards & Visualizations

How to pass a token to a panel in the place of a saved search in Splunk 6.2?

stephane_cyrill
Builder

I have many saved searches and i populate them in a drop-down. Now what i want is to choose the one that will be run on the panel.

when i do this in my xml code:

<search ref="$savedsearch_token$"></search>

my panel displays a savedsearch error

0 Karma

tachifelix
Path Finder
  1. Make sure that you saved report in the same app context with you dashboard
  2. Make sure that in your dropdown you listed the name for the saved report
  3. look the roles for your saved report you dashboard code is stile correct to run the saved report see more in new_in_splunk_6.2.pdf manuel

stephane_cyrill
Builder

hi Felix Thanks for your help. I've try that already but it still do not work. I don't know if there is a way to escape the $..$

0 Karma

tachifelix
Path Finder

i thing that you have to prefix and sufix your token with "

0 Karma

dfoster_splunk
Splunk Employee
Splunk Employee

It's more reliable to write $footoken|s$ than "$footoken$", as the former will deal with backslashes and quotes in the token value correctly.

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...