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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...