Dashboards & Visualizations

How to display a progress bar in panels when refreshing an HTML Dashboard, not "waiting for data"?

SAPrabhakar
Explorer

I had a dashboard that was XML but because we needed it to be themed in a very specific way we had to switch it to a HTML dashboard.

The first problem that I encountered was that the HTML dashboard would not refresh. And after tinkering around with the javascript, I figured out that if I added '"refresh" : "5s"' to the search manager that the chart would refresh; however, when the chart is in the process of refreshing, the chart goes white and "Waiting for data" appears.

When the dashboard refreshes the data in XML, a progress bar appears above the chart and the chart does not go white.

Does anyone know what needs to be done to get the progress bar to show rather than the entire chart going white for a HTML dashboard?

I have tried adding "refresh_display" : "progressbar" to the SearchManager but that does not appear to have any effect.

douglasmsouza
Explorer

I'm having the same issue here. Did you manage to solve it?

0 Karma

niketn
Legend

I am assuming you are trying Panel refresh in Splunk 6.5. I don't think the new feature of Splunk 6.5 to refresh XML panel by setting refresh option for panel search is available once you migrate it to HTML and might require you to request an enhancement.

<refresh>30s</refresh>

However, if you can refresh the entire dashboard then you can

Option 1: Add the following in XML (to refresh dashboard every 5 min i.e. 5*60)

<dashboard refresh="300">

PS: for Form similarly refresh command will be

<form refresh="300">

Option 2: Or else add the following code in HTML (to refresh dashboard every 5 minutes):

    submitTokens();

    setTimeout("location.reload();", 300 * 1000);

    //
    // DASHBOARD READY
    //
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

SAPrabhakar
Explorer

I was able to get the panel to refresh by setting "refresh" : "5s" when the instantiation of the searchMananger happens. This works but it makes the panel go white.

0 Karma

niketn
Legend

I also tried manually by adding however, the same does not refresh the panel. There are other "new" features of Splunk 6.5 which work only in XML and not HTML like the table cell color. So, see if you can use the other option to refresh the entire dashboard through above option or else, request a Splunk Enhancement case by calling in support.

"refresh":"30s",
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...