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!

Using Machine Learning for Hunting Security Threats

WATCH NOW Seeing the exponential hike in global cyber threat spectrum, organizations are now striving more for ...

New Learning Videos on Topics Most Requested by You! Plus This Month’s New Splunk ...

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

How I Instrumented a Rust Application Without Knowing Rust

As a technical writer, I often have to edit or create code snippets for Splunk's distributions of ...