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!

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