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!

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...

SignalFlow: What? Why? How?

What is SignalFlow? Splunk Observability Cloud’s analytics engine, SignalFlow, opens up a world of in-depth ...

Federated Search for Amazon S3 | Key Use Cases to Streamline Compliance Workflows

Modern business operations are supported by data compliance. As regulations evolve, organizations must ...