Dashboards & Visualizations

"That is not a valid URL"

Branden
Builder

I'm working on a dashboard and I have set-up an IFrameInclude. I'd like to embed a URL like the following into my dashboard:

https://host.xyz.com:10010/console 

When I load the dashboard, produces the following error in the frame: "That is not a valid URL"

After doing several tests, I found that it simply doesn't like the port number at the end of the URL. Is there a work-around for this, or am I out of luck?

Thanks!

Tags (1)
1 Solution

sideview
SplunkTrust
SplunkTrust

This bug came to light a while ago and was filed somewhere but presumably it's never been fixed. That module uses a python library called formencode and for some reason the regex code in that library fails to account for explicit port numbers in the URL.

I think your best options at this point are

a) to manually put the iframe in there with either a StaticContentSample module or a ServerSideInclude module. Then if you need the iframe to be manually resized you would do it with jquery -- either embed javascript into that same code, or do it from application.js

b) Copy the files that comprise the IFrameInclude module, tinker with the mako template to get it to not validate your URL at all (presumably you trust yourself), and then package the result as a new custom module in your app. Beware that modules packaged in apps do not work correctly when running splunk on windows (fix is coming in 4.1.6)

View solution in original post

sideview
SplunkTrust
SplunkTrust

This bug came to light a while ago and was filed somewhere but presumably it's never been fixed. That module uses a python library called formencode and for some reason the regex code in that library fails to account for explicit port numbers in the URL.

I think your best options at this point are

a) to manually put the iframe in there with either a StaticContentSample module or a ServerSideInclude module. Then if you need the iframe to be manually resized you would do it with jquery -- either embed javascript into that same code, or do it from application.js

b) Copy the files that comprise the IFrameInclude module, tinker with the mako template to get it to not validate your URL at all (presumably you trust yourself), and then package the result as a new custom module in your app. Beware that modules packaged in apps do not work correctly when running splunk on windows (fix is coming in 4.1.6)

Branden
Builder

Ah okay, so it's a known issue.
That being the case, I think I'm going to do is simply insert a link that people can click on to get to the external site.
Thank you for your response and suggestions.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...