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!

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