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!

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 ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...