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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...