Dashboards & Visualizations

Using Advanced XML - JS is not updating!

ppatrikfr
Path Finder

Hello,

I'm trying to use a .js file in my dashboard but I could only load this file once, everytime I try to change my code at main js file it doens't load my new code at splunk just keep with old version of file, i tried to refresh splunk and restart my application but still doesn't work.

My JS file:

alert("Allert3");

My Dashboard XML:

<form script="filejscript.js">
  <label> InitializationDashboard </label>
  <row>

    <html>
      <body>
        <h1 id="mainH1"> H1 Yey </h1>
      </body>
    </html>

  </row>

</form>

Can anyone give me some tips about using JS or another script at splunk?

0 Karma
1 Solution

poete
Builder

Hi,

did you have a look at this?
http://docs.splunk.com/Documentation/Splunk/7.1.1/AdvancedDev/CustomizationOptions

What ou are describing looks like you did not '_bump' after doing the changes in the js file.

View solution in original post

0 Karma

poete
Builder

Hi,

did you have a look at this?
http://docs.splunk.com/Documentation/Splunk/7.1.1/AdvancedDev/CustomizationOptions

What ou are describing looks like you did not '_bump' after doing the changes in the js file.

0 Karma

ppatrikfr
Path Finder

I didn't know about bump endpoint i was just using /debug/refresh, but it totally works to me, thanks.

Obs.: Can you change your comment to answer so i can changed to answered topic

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...