Dashboards & Visualizations

After upgrading to 6.5.0, JavaScript library methods are not working resulting in HTML/JavaScript dashboards to not work. Is there a fix?

theoborrero
Explorer

Hi , our corporation just upgraded to from Splunk 6.2.6 to Splunk Enterprise 6.5.0. This immediately broke the HTML/JavaScript Dashboard that my team had created. Specifically the Splunk JavaScript library methods are not working.

There are some basics Javascript sitting inside the HTML form which is still rendering correctly. But the Splunk JavaScript is not rendering correctly and displaying on the Dashboard form.

My understanding is that nothing for the HTML/JavaScript Dashboards has been removed or deprecated from this release. So I am not sure why it is not working at this time.

Our dynamics XML dashboards are still working correctly for our corporation. And since my team is the only team that builds dashboards using Splunk HTML/JavaScript format, there are no other sources to bounce ideas off as to what caused this to fail this week from the upgrade.

Can someone point in the correct direction on how to troubleshoot this issue?

0 Karma

aaraneta_splunk
Splunk Employee
Splunk Employee

@theoborrero - Did one of the answers below help provide a solution your question? If yes, please click “Accept” below the best answer to resolve this post. If no, please leave a comment with more feedback. Thanks.

0 Karma

luigeek
Engager

Clearing the browser cache and restarting Splunk did it for me, all the json and css files have been refreshed.

rjthibod
Champion

The challenge is that Splunk pretty much says that once you build HTML/JS dashboards, you throw out any guarantees about version compatibility. Especially given all the changes 6.5 made to how they load things, your situation is not too surprising.

Now, getting to a solution is probably going to take some work.

First, I would build a SimpleXML dashboard in 6.5 that emulates some basic things you do in the HTML/JS dashboards. Then you can convert your SimpleXML dashboard to HTML/JS using the built-in converter, and then inspect the generated code to see if there are any glaring obvious things that are new/different, e.g., CSS class names, navbar structure, mvc name changes, calling semantics, etc..

Unless someone from Splunk can give you a detailed list of changes (which likely won't happen), I would suggest you try something akin to what I just described and start reverse engineering it yourself.

On a side note, I too used to do a fair amount in HTML/JS, but I now switched back to SimpleXML dashboards with custom JS and CSS extensions. I can do pretty much everything I used to do, and it is easier to maintain version compatibility (my app runs on6.2 - 6.5).

jeffland
SplunkTrust
SplunkTrust

.+1 for Simple XML dashboards with custom js/css. I can only imagine very few cases where this is not enough.

0 Karma

rjthibod
Champion

What kinds of things do you think will not be doable using JS/CSS attached to SimpleXML as compared to the HTML/JS combo? I ask for the question asker's benefit.

0 Karma

jeffland
SplunkTrust
SplunkTrust

Sorry, formatting mangled my post. I meant to say "+1" for simple xml...

0 Karma

rjthibod
Champion

Gotcha thanks. I happily accept karma if you want to upvote my answer 😉

0 Karma
Get Updates on the Splunk Community!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...