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!

The Splunk Success Framework: Your Guide to Successful Splunk Implementations

Splunk Lantern is a customer success center that provides advice from Splunk experts on valuable data ...

Splunk Training for All: Meet Aspiring Cybersecurity Analyst, Marc Alicea

Splunk Education believes in the value of training and certification in today’s rapidly-changing data-driven ...

Investigate Security and Threat Detection with VirusTotal and Splunk Integration

As security threats and their complexities surge, security analysts deal with increased challenges and ...