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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...