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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...