Dashboards & Visualizations

Link to file:// in dashboard not working

SimonWa
New Member

links to url "www.google.com" works fine, but links like "file://server/folder/file.xlm" don't work in my dashboard.

Dashboard looks like:
form, row, panel, html, div
link (url and file)
for example: < a href="file://server/folder/file.xlm" target="_blank"> Name < /a>
/div, /html, /panel ,/row
.. more row's including content (tables). ..
/form

Please help
Thank you

0 Karma

SimonWa
New Member

Hi,

i tried http://file:// ...
The new chrome page have this url: file///server/folder/file.xlm
and the site shows:
alt text

Other ideas?

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

Hi ,

Chrome throws me this error:

Not allowed to load local resource: file://server/folder/file.xlm

This is because JavaScript does not have access to local files.

Can you please try this?

< a href="http://file://server/folder/file.xlm" target="_blank"> Name < /a>

Happy Splunking

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

HI @SimonWa ,

Due to security reasons, these file links cannot be opened directly from web page (But yes we can access from It splunk server. check below suggestion).

Can you please let me know the reason or requirement of opening local files?

If you want to access files from shared location then I suggest:

1) Mount shared location at Splunk instance (because mount shared location at user machine is not preferable).

2) Create a web endpoint which read file open at client web browser. Splunk provides custom endpoints.
Please check below URL for custom endpoint example.

https://www.hurricanelabs.com/splunk-tutorials/splunk-custom-endpoints-part-1-the-basics

3) Create a javascript function which executes custom endpoint and open shared file.

I hope it will help you.

Let me know if any help required for Javascript OR custom endpoint development.

Happy Splunking

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...