Dashboards & Visualizations

How to embed an external page in a dashboard panel or iframe?

omerr
Explorer

Hi,

I tried to put an external page in a dashboard panel or iframe, but didn't succeed.

I saw the early answers on this issue, but none of them talks about a link with parameters.

The external link I want to show in a Splunk panel / iframe looks like:

http://mysite.com?Portal&param1=x&param2=y&path=/var/my%20application/versions/9.%20latest/current

I tried to do (as mentioned in this answer: https://answers.splunk.com/answers/213337/is-it-possible-to-display-an-external-web-page-in.html 😞

My Dashboard

 <html>
 <h2>Embedded Web Page!</h2>
    <iframe src="http://mysite.com?Portal&param1=x&param2=y&path=/var/my%20application/versions/9.%20latest/current" width="100%" height="300">mysite</iframe>
 </html>

but did not succeed. This gave me an error.

I think the issue is with the parameters, so we need to put CDATA somewhere like:

 My Dashboard

 <html>
 <h2>Embedded Web Page!</h2>
    <[!CDATA[<iframe src="http://mysite.com?Portal&param1=x&param2=y&path=/var/my%20application/versions/9.%20latest/current" width="100%" height="300">mysite</iframe>]]>
 </html>

but also didn't work.

Anyone do something like this and can help?

Thanks,

Omer.

0 Karma

woodcock
Esteemed Legend

This blog lays it all out step-by-step:
http://blogs.splunk.com/2014/05/08/17682/

0 Karma

treinke
Builder

I am using 6.4.2 and use the following in XML of the dashboard. I simply call the HTML tag and then use the standard iframe commands inside a panel. Hope this helps.

<row>
    <panel>
      <title>Testing HTML</title>
      <html>
        <iframe src="http://www.splunk.com" height="200" width="1000" style="border:none;"></iframe>
      </html>
    </panel>
</row>
There are no answer without questions

Raghav2384
Motivator

Hello, Please try this

Embedded Web Page!

<[!CDATA[]]>

replace & with &amp; in your url and also, that whole html snippet has to be inside a .

Hope this helps!

Thanks,
Raghav

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...