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!

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