Dashboards & Visualizations
Highlighted

"That is not a valid URL"

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)
Highlighted

Re: "That is not a valid URL"

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

Highlighted

Re: "That is not a valid URL"

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