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!

App Building 101 - Build Your First App!

WATCH RECORDING NOW   Tech Talk: App Dev Edition Splunk has tons of out-of-the-box functionality, and you’ve ...

Introducing support for Amazon Data Firehose in Splunk Edge Processor

We’re excited to announce a powerful update to Splunk Data Management with added support for Amazon Data ...

The Observability Round-Up: September 2024

What’s up Splunk Community! Welcome to the latest edition of the Observability Round-Up, a monthly series in ...