Dashboards & Visualizations

After converting my advanced XML dashboard to HTML, it seems to be very slow. How can I improve the HTML view's performance?

kasu_praveen
Communicator

I converted my existing advanced XML dashboard to HTML view (Which allows me to add coloring and other styles to my dashboard).
But, performance of HTML view seems to be very slow.

Is there any way (tips & tricks) to improve performance of the HTML view?
Something like Caching or Pre loading of the page?

0 Karma
1 Solution

kasu_praveen
Communicator

After further analysis, I did found that inclusion of “/profiles/shared.js” in converted HTML is taking most of the load time, where as if I replace that with “/simplexml.min/config.js”, page is loading real fast.

<script src="{{SPLUNKWEB_URL_PREFIX}}/static/js/profiles/shared.js"></script>

Is replaced with

<script src="{{SPLUNKWEB_URL_PREFIX}}/static/js/build/simplexml.min/config.js"></script>

View solution in original post

kasu_praveen
Communicator

After further analysis, I did found that inclusion of “/profiles/shared.js” in converted HTML is taking most of the load time, where as if I replace that with “/simplexml.min/config.js”, page is loading real fast.

<script src="{{SPLUNKWEB_URL_PREFIX}}/static/js/profiles/shared.js"></script>

Is replaced with

<script src="{{SPLUNKWEB_URL_PREFIX}}/static/js/build/simplexml.min/config.js"></script>

tom_frotscher
Builder

Is only your converted html view slow? Because you can also add coloring and styles to an XML dashboard, by providing js and css files:

http://docs.splunk.com/Documentation/Splunk/6.2.2/Viz/CustomizeSimpleXML#CSS_and_JavaScript

0 Karma

kasu_praveen
Communicator

@ tom_frotscher - Yes only my HTML view is slower, It is taking good amount of time to load all the files (.js, and other files).

It is not just coloring and styles. It is more than that. Just for understanding, I mentioned like that.

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 ...