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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...