Dashboards & Visualizations

Why is my JavaScript file not being picked up by my XML?

Anmar0293
Path Finder

I have included a JavaScript file in my XML. I put them with the script="functions.js" and I placed the JavaScript file under appserver/static.

I tested if the JavaScript file was being linked with the XML by just displaying "hello world" as a pop up.

I cleared the cache, also I restarted my Splunk instance, yet it is still not working.

What could be the reasons for why my JavaScript file is not being linked with my XML?

Thanks!

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@Anmar0293

Have you bumped the javascript version?
Try it by hitting below URL on your Splunk instance.

http://localhost:8000/en-US/_bump

0 Karma

ddasilvasanches
New Member

This could be the answer. I would accept it and upvote. Worked for me.

0 Karma

493669
Super Champion

have you put your js file in specific app>>appserver>>static folder?

0 Karma

Anmar0293
Path Finder

Yes, I put it in the same app i'm working on.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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