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 Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...