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!

AppDynamics Summer Webinars

This summer, our mighty AppDynamics team is cooking up some delicious content on YouTube Live to satiate your ...

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...