Dashboards & Visualizations

How can I use multiple tokens when calling another dashboard?

vinay4444
Explorer

I am currently calling a dashboard from another dashboard.

<html>
<style>.btn-primary { margin: 5px 10px 5px 0; }</style>
<a href="http://xxxx/en-US/app/search/dbmondb2?form.Host=$Host$" class="btn btn-primary">Summary Page</a>
</html>

How can I add another token?

form.statistic=$statistic$

0 Karma

DMohn
Motivator

Have you tried adding the token in the URL directly?

 <a href="http://xxxx/en-US/app/search/dbmondb2?form.Host=$Host$&form.statistic=$statistic$" class="btn btn-primary">
0 Karma

vinay4444
Explorer

yes i got this error message
Encountered the following error while trying to update: In handler 'views': Error parsing XML on line 42: EntityRef: expecting ';'

0 Karma

DMohn
Motivator

Can you please post your XML source (at least the relevant part)? It's hard to debug the dashboard if we don't have this information.

0 Karma

vinay4444
Explorer

test44
v 1.0

<input type="dropdown" token="Host">
  <label>Database</label>
  <search>
    <query>index=infra_service_perf  sourcetype="DATABASE:ms.db" |  table name  | dedup name</query>
    <earliest>0</earliest>
  </search>
  <fieldForLabel>name</fieldForLabel>
  <fieldForValue>name</fieldForValue>
  <default>nytit031.sharedb7</default>
</input>
<input type="time" token="field2" searchWhenChanged="true">
  <label>Time Range Picker</label>
  <default>
    <earliest>-4h@m</earliest>
    <latest>now</latest>
  </default>
</input>
<input type="radio" token="statistic">
  <label>Statistic</label>
  <choice value="AVG">Average</choice>
  <choice value="MAX">Maximum</choice>
  <choice value="MIN">Minimum</choice>
  <choice value="SUM">Sum</choice>
  <default>AVG</default>
</input>
<input type="radio" token="refresh_interval" searchWhenChanged="true">
  <label>Panel Refresh Override</label>
  <choice value="60">1 Minute</choice>
  <choice value="300">5 Minutes</choice>
  <choice value="600">10 Minutes</choice>
  <default>600</default>
</input>


<panel>

<a href="http://xxx/en-US/app/search/dbmondb2memory?form.Host=$Host$">Memory</a>
<a href="http://xxx/en-US/app/search/dbmondb2trasactionsuows?form.Host=$Host$">Transactions/UOWs</a>
<a href="http://xxx/en-US/app/search/dbmondb2_io?form.Host=$Host$">I/O</a>
<a href="http://xxx/en-US/app/search/dbmondb2_locks?form.Host=$Host$">Locks</a>
<a href="http://xxx/en-US/app/search/dbmondb2logs?form.Host=$Host$">Transaction Logs</a>
<a href="http://xxx/en-US/app/search/dbmondb2_storage?form.Host=$Host$">Storage</a>
<a href="http://xxx/en-US/app/search/dbmondb2_instance">Instance</a>

</panel>
0 Karma
Get Updates on the Splunk Community!

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

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...