Dashboards & Visualizations

Why does my iFrame widget not work?

lampje
Engager

My goal is to put an iFrame widget in a Dashboard.

I've tried this once before with the same code (afaik), which worked. This was about a month ago, but I did not save that Dashboard...
The Edit-->Source mode does not give any errors, and I can press on SAVE. However, when I view the Dashboard after, the area where there is supposed to be Wikipedia is empty. The iFrame widget does not seem to load.
When I put in there, it does work.

Code I used is written below. I put wikipedia in there as an example. Since this website allows itself to be embedded.

What am I forgetting? How do I make this work?

      <row>
        <panel>
          <title>TEST - iFrame in Dashboard</title>
          <html>
             <iframe src="https://www.wikipedia.org/" height="200px" width="100px"/>
           </html>
        </panel>
      </row>

arthur
Engager

For Splunk Enterprise, dashboard_html_allow_embeddable_content must be set to true in the appropriate app's web.conf; see this discussion for details.  

I've tried doing the same thing for a Splunk Cloud instance.  Unfortunately, the custom app fails the app validation during installation in Splunk Cloud because of the configuration changes to the web.conf file.  I've posted a question about this specifically for Splunk Cloud. 

I know this post is over a year old but I came across it while Googling for a solution to the problem and thought I'd link to the related posts.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...