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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...