Dashboards & Visualizations

How to modify the Master.html file?

edoardo_vicendo
Contributor

Hello,

We are trying to modify the Master.html file but our modifications do not reflect as expected.

Inspecting the page with Chrome DevTools Overview (F12 button) we realized that the highest element in the page (The black Splunk bar where "Messages", "Settings" menu appears) is located here:

 views/shared/splunkbar/Master

So then we found in our local machine that the file is at the following path:

 C:\Program Files\Splunk\share\splunk\search_mrsparkle\exposed\js\views\shared\splunkbar\Master.html

After that we tried to modify the Master.html adding a script tag to display a message in the console:

 <script type="text/javascript">
     console.log("[1] Test");
 </script>

Cleaned the browser cache and restarted the Splunk Server but nothing appears...
Do you know if we are doing something wrong?

Thanks a lot,
Edoardo

Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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