<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Display website in iFrame with URL coming from variable? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/369190#M24133</link>
    <description>&lt;P&gt;Yes it should. If it is not working press F12 and test Console for any page level errors with iFrame options like I had mentioned in my previous comment.&lt;/P&gt;

&lt;P&gt;Following is an extension of above example with a single value panel displaying URL and clicking on the same iFrame should be opened.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3355iE6BDE8C629335B16/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults
| eval URL="http://docs.splunk.com/Documentation"
| table URL
          &amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="colorMode"&amp;gt;block&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="useColors"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="tokURL"&amp;gt;$click.value$&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel depends="$tokURL$"&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;iframe src="$tokURL$" height="600" width="100%" style="border:2;"&amp;gt;
          &amp;lt;p&amp;gt;Your browser does not support iframes.&amp;lt;/p&amp;gt;
        &amp;lt;/iframe&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 16 Aug 2017 10:57:41 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-08-16T10:57:41Z</dc:date>
    <item>
      <title>Display website in iFrame with URL coming from variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/369187#M24130</link>
      <description>&lt;P&gt;I have a dashboard which contains a variable $url$&lt;BR /&gt;and I would like to display the website who's address is stored in $url$ inside an iFrame.&lt;/P&gt;
&lt;P&gt;I am failing to do something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;html&amp;gt;
  &amp;lt;iframe src="$url$" height="200" width="1000" style="border:none;"/&amp;gt;
 &amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 23:56:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/369187#M24130</guid>
      <dc:creator>viggor</dc:creator>
      <dc:date>2020-06-07T23:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Display website in iFrame with URL coming from variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/369188#M24131</link>
      <description>&lt;P&gt;What are some of the URL values? Can you put some samples?&lt;BR /&gt;
If they are external URLs, then you should test opening them in regular HTML files first as some websites do not allow their pages to be opened inside iFrames using following x-frame-options: &lt;CODE&gt;x-frame-options' to 'sameorigin'&lt;/CODE&gt;. Refer to the following link: &lt;A href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options"&gt;https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Following is run anywhere search to open &lt;A href="http://docs.splunk.com"&gt;http://docs.splunk.com&lt;/A&gt; which supports opening in iFrames but does not work with &lt;A href="https://answers.splunk.com"&gt;https://answers.splunk.com&lt;/A&gt; which does not. You can open your HTML debugger(F12) to investigate this issue as there should be a Console error logged for the same if iFrame is not loading.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;iframe src="http://docs.splunk.com/Documentation" height="600" width="100%" style="border:2;"&amp;gt;
          &amp;lt;p&amp;gt;Your browser does not support iframes.&amp;lt;/p&amp;gt;
        &amp;lt;/iframe&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: I changed border to 2 just to ensure that iFrame is supported and showing up in Splunk whether the webpage opens inside iFrame or not.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 06:19:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/369188#M24131</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-15T06:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Display website in iFrame with URL coming from variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/369189#M24132</link>
      <description>&lt;P&gt;Thanks for your answer. What you posted works perfectly fine for static, constant urls, but what if the url is stored in a variable $url$?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 15:32:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/369189#M24132</guid>
      <dc:creator>viggor</dc:creator>
      <dc:date>2017-08-15T15:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Display website in iFrame with URL coming from variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/369190#M24133</link>
      <description>&lt;P&gt;Yes it should. If it is not working press F12 and test Console for any page level errors with iFrame options like I had mentioned in my previous comment.&lt;/P&gt;

&lt;P&gt;Following is an extension of above example with a single value panel displaying URL and clicking on the same iFrame should be opened.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3355iE6BDE8C629335B16/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults
| eval URL="http://docs.splunk.com/Documentation"
| table URL
          &amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="colorMode"&amp;gt;block&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="useColors"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="tokURL"&amp;gt;$click.value$&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel depends="$tokURL$"&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;iframe src="$tokURL$" height="600" width="100%" style="border:2;"&amp;gt;
          &amp;lt;p&amp;gt;Your browser does not support iframes.&amp;lt;/p&amp;gt;
        &amp;lt;/iframe&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Aug 2017 10:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/369190#M24133</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-16T10:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Display website in iFrame with URL coming from variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/369191#M24134</link>
      <description>&lt;P&gt;@viggor, were you able to try out the example? Please let us know if something is not working for you.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 09:17:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/369191#M24134</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-29T09:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Display website in iFrame with URL coming from variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/369192#M24135</link>
      <description>&lt;P&gt;I know this is old, but I am trying to make this work. My URL opens up a webpage that verifies the status of ditribution points.&lt;BR /&gt;
&lt;A href="http://sccm/sms_mp/.ss_aut?mplist"&gt;http://sccm/sms_mp/.ss_aut?mplist&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;When Ireplace my URL with the URL in the example, the dashboard diplays a large black bar with my UL in white text and an empty, bordered panel.&lt;BR /&gt;
Any assistance would be apreciated.&lt;BR /&gt;
Ron Jones&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 22:21:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/369192#M24135</guid>
      <dc:creator>noy72</dc:creator>
      <dc:date>2019-02-22T22:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Display website in iFrame with URL coming from variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/369193#M24136</link>
      <description>&lt;P&gt;The problem that you are having is that recently Splunk has added some settings to control this type of content and defaulted &lt;CODE&gt;dashboard_html_allow_embeddable_content&lt;/CODE&gt; to &lt;CODE&gt;false&lt;/CODE&gt;.  In order to get it to work, try enabling these settings in &lt;CODE&gt;web.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;dashboard_html_allow_inline_styles = &amp;lt;boolean&amp;gt;
* Whether or not to allow style attributes from inline HTML elements in dashboards.
* If "false", style attributes from inline HTML elements in dashboards will be removed 
  to prevent potential attacks.
* Default: true

dashboard_html_allow_embeddable_content = &amp;lt;boolean&amp;gt;
* Whether or not to allow &amp;lt;embed&amp;gt; and &amp;lt;iframe&amp;gt; HTML elements in dashboards.
* If set to "true", &amp;lt;embed&amp;gt; and &amp;lt;iframe&amp;gt; HTML elements in dashboards will not be removed 
  and can lead to a potential security risk.
* If set to the default value of "false", &amp;lt;embed&amp;gt; and &amp;lt;iframe&amp;gt; HTML elements will be stripped
  from the dashboard HTML.
* Default: false

dashboard_html_wrap_embed = &amp;lt;boolean&amp;gt;
* Whether or not to wrap &amp;lt;embed&amp;gt; HTML elements in dashboards with an &amp;lt;iframe&amp;gt;.
* If set to "false", &amp;lt;embed&amp;gt; HTML elements in dashboards will not be wrapped, leading to
  a potential security risk.
* If set to "true", &amp;lt;embed&amp;gt; HTML elements will be wrapped by an &amp;lt;iframe sandbox&amp;gt; element to help
  mitigate potential security risks.
* Default: true

dashboard_html_allow_iframes = &amp;lt;boolean&amp;gt;
* Whether or not to allow iframes from HTML elements in dashboards.
* If "false", iframes from HTML elements in dashboards will be removed to prevent
  potential attacks.
* Default: true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 May 2020 13:07:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/369193#M24136</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-05-22T13:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Display website in iFrame with URL coming from variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/741205#M58358</link>
      <description>&lt;P&gt;I am getting&lt;/P&gt;&lt;P&gt;Refused to display '&lt;A href="https://docs.splunk.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.splunk.com/&lt;/A&gt;' in a frame because it set 'X-Frame-Options' to 'sameorigin'. even though i setup below configurations in web.conf in /opt/splunk/etc/system/local&lt;/P&gt;&lt;P&gt;dashboard_html_allow_embeddable_content = true&lt;BR /&gt;dashboard_html_allow_iframes = true&lt;BR /&gt;dashboard_html_allow_inline_styles = true&lt;BR /&gt;dashboard_html_allowed_domains = *.splunk.com&lt;BR /&gt;dashboard_html_wrap_embed = false&lt;/P&gt;&lt;P&gt;This is the script in dashboard:&lt;/P&gt;&lt;P&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;iframe src="&lt;A href="https://docs.splunk.com/Documentation" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.splunk.com/Documentation&lt;/A&gt;" width="100%" height="300"&amp;gt;&amp;amp;gt;&amp;lt;/iframe&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;/P&gt;&lt;P&gt;Please advice. Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 08 Mar 2025 11:47:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/741205#M58358</guid>
      <dc:creator>kumaranv</dc:creator>
      <dc:date>2025-03-08T11:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Display website in iFrame with URL coming from variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/741208#M58359</link>
      <description>&lt;P&gt;I cut and pasted your script and ran the dashboard. Then clicked the link. Sorry still not working&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kumaranv_1-1741436110800.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38052i4A1370FCAE69EBF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kumaranv_1-1741436110800.png" alt="kumaranv_1-1741436110800.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;dashboard version="1.1" theme="light"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;test1&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&amp;lt;single&amp;gt;&lt;BR /&gt;&amp;lt;search&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;| makeresults&lt;BR /&gt;| eval URL="&lt;A href="http://docs.splunk.com/Documentation" target="_blank"&gt;http://docs.splunk.com/Documentation&lt;/A&gt;"&lt;BR /&gt;| table URL&lt;BR /&gt;&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&amp;lt;option name="colorMode"&amp;gt;block&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="useColors"&amp;gt;1&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;drilldown&amp;gt;&lt;BR /&gt;&amp;lt;set token="tokURL"&amp;gt;$click.value$&amp;lt;/set&amp;gt;&lt;BR /&gt;&amp;lt;/drilldown&amp;gt;&lt;BR /&gt;&amp;lt;/single&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;panel depends="$tokURL$"&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;$tokURL$&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;iframe src="$tokURL$" height="600" width="100%" style="border:2;"&amp;gt;&lt;BR /&gt;&amp;lt;/iframe&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;/dashboard&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Mar 2025 12:16:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/741208#M58359</guid>
      <dc:creator>kumaranv</dc:creator>
      <dc:date>2025-03-08T12:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Display website in iFrame with URL coming from variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/741210#M58360</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kumaranv_0-1741437588099.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38053i8EA65D79DD64A2B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kumaranv_0-1741437588099.png" alt="kumaranv_0-1741437588099.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sorry. Still not working&lt;/P&gt;</description>
      <pubDate>Sat, 08 Mar 2025 12:40:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/741210#M58360</guid>
      <dc:creator>kumaranv</dc:creator>
      <dc:date>2025-03-08T12:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Display website in iFrame with URL coming from variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/741245#M58364</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kumaranv_0-1741540421023.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38058i583FC5F10248063E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kumaranv_0-1741540421023.png" alt="kumaranv_0-1741540421023.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is what i am getting. It is not working for me. Any help would to appreciated&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 09 Mar 2025 17:14:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-website-in-iFrame-with-URL-coming-from-variable/m-p/741245#M58364</guid>
      <dc:creator>kumaranv</dc:creator>
      <dc:date>2025-03-09T17:14:44Z</dc:date>
    </item>
  </channel>
</rss>

