Splunk Enterprise

How to make JavaScript applicable to all dashboards?


Hi, I have a javascript file and I want it to be applicable to all dashboards

Are there any way to do that but not copy and paste the reference to each  html file ?


Labels (1)
0 Karma



You can use dashboard.js to apply common logic in all dashboard.

`dashboard.js` is internally executed by The Splunk web  when any dashboard gets loaded.

You can create dashboard.js in YOUR_APP/appserver/static folder and  open any dashboard in that app.

], function(_, mvc) {


I hope this will help you to move you on 🙂 .


0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud | Unified Identity - Now Available for Existing Splunk ...

Raise your hand if you’ve already forgotten your username or password when logging into an account. (We can’t ...

Index This | How many sides does a circle have?

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

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...