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
Get Updates on the Splunk Community!

New in Observability - Improvements to Custom Metrics SLOs, Log Observer Connect & ...

The latest enhancements to the Splunk observability portfolio deliver improved SLO management accuracy, better ...

Improve Data Pipelines Using Splunk Data Management

  Register Now   This Tech Talk will explore the pipeline management offerings Edge Processor and Ingest ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

Register Join this Tech Talk to learn how unique features like Service Centric Views, Tag Spotlight, and ...