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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...