Getting Data In

How to add a link to other dashboard using SimpleXML?

khojas02
Engager

Hello all,

I would like to add 3 links of 3 different dashboards in a separate dashboard panel. My current code is as below

<row>
<panel>
<title></title>
<html>
<p>
<b style="font-size:12pt">Link to other relevant Dashboards</b></p>
<a href="https://******/en-US/app/******/****">Click here for Dashboard 1</a>


<a href="https://******/en-US/app/*****/dlp_unstructured_data_discovery_dim?form.timePolicyDivision.earliest=-30d%40d&form.timePolicyDivision.latest=now&form.policyType=*">Click here for Dashboard 2</a>

<a href="https://*****/en-US/app/********/symantec_dim__blocked_detail?form.blockedTime.earliest=-7d%40h&form.blockedTime.latest=now&form.businessUnitSearch=*&form.emplidSearch=*&form.policyCategorySearch=*&form.lanidSearch=*">Click here for Dashboard 3</a>
</html>
</panel>
</row>

Now, the URL for Dashboard 1 is working fine that includes the combination of characters, dot, and underscore. But, it's giving me an error for Dashboard 2 and 3 as I have various characters in the URL. So, how can I resolve this issue? I don't have search element in my XML so I can't solve it at UI or search level.

Any help would be appreciated!!

Labels (1)
Tags (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @khojas02,

try to replace in your dashboard "&" with "&amp;".

Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @khojas02,

try to replace in your dashboard "&" with "&amp;".

Ciao.

Giuseppe

gcusello
SplunkTrust
SplunkTrust

Hi @khojas02,

good!

Ciao and next time.

Giuseppe

P.S.. karma Points are appreciated

0 Karma

bowesmana
SplunkTrust
SplunkTrust

You need to make sure the url is encoded in the dashboard, particularly the & signs need to be in there as 

&amp;

What is the error you are getting?

0 Karma

khojas02
Engager

Hi,

This has worked for me. 

Error message I was getting - Invalid character entity

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @khojas02,

good!

Ciao and next time.

Giuseppe

P.S.. karma Points are appreciated 😉

0 Karma
Get Updates on the Splunk Community!

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

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

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