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.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...