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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...