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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...