Dashboards & Visualizations

Reading javascript from the server

robertcoanca
Explorer

Hi guys,

I installed my own instance on Windows. I had some javascript files that will improve my look and field as a visual carousel for single panels ( e.g: https://www.splunk.com/en_us/blog/tips-and-tricks/animate-simplexml-dashboard-elements-with-a-carous... ).
In my instance, everything is working fine! When I had tried to apply also into the production (Apache Server) in the console appear this error: Failed to load resource: the server responded with a status of 404 (Not Found) https://splunk-euops.internal.vodafone.com/en-US/static/js/lib/jquery.cloud9carousel.js

In my carousel.js from 'opt/splunk/etc/apps/app/vf_euops_reporting/appserver/static' I have the following path:

require([
'underscore',
'jquery',
'splunkjs/mvc',
'splunkjs/mvc/simplexml/ready!',
'/static/app/vf_euops_reporting/js/lib/jquery.cloud9carousel.js'
], function(_, $, mvc, Carousel) {
....

I have tried to change the path to:
'js/lib/jquery.cloud9carousel.js'
'app/vf_euops_reporting/js/lib/jquery.cloud9carousel.js'
'/static/app/vf_euops_reporting/js/lib/jquery.cloud9carousel.js'

and none working....

But If I add in the URL after the static '/app/vf_euops_reporting' (this is the APP where I would like to install) https://splunk-euops.internal.vodafone.com/en-US/static/app/vf_euops_reporting/js/lib/jquery.cloud9c... it will found...

Any suggestions, please?

Thank you in advance!

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...