Dashboards & Visualizations

Why is the HTML panel not refreshing on the dashboard after adding auto-refresh for the whole page?

jeffbat
Path Finder

I have a dashboard for our SOC that is running and all of the panels work fine on it. but when we added an auto-refresh for the whole page we are finding that the HTML panel in the dashboard is not refreshing (the other panels which are just normal searches are refreshing fine).

This is the top of the XML code for the dashboard down through the panel which is not refreshing.

<dashboard refresh="300" script="access_center.js" stylesheet="hide_export_pdf.css">
  <label>SOC Home</label>
  <row>
    <panel>
      <html id="element1">
            <div class="key-indicators" data-group-name="soc_home"/>
        </html>
    </panel>
  </row>

This is in our Enterprise Security app and the top panel which is the one that is not refreshing is showing the Access/Network/Potential Data Loss/Malware Notables indicators.

I believe that these are getting populated and showing the script but not sure how to modify it so that it will refresh on a timer.

Any help would be appreciated.

Thanks.

0 Karma

deepashri_123
Motivator

Hey@jeffbat,

In HTML and JS,
you can reference this as such:

 var element2 = new ChartElement({
     "id": "element2",
     "resizable": true,
     "refresh.auto.interval": "30",
     "managerid": "search2",
     "el": $('#element2')
 }, {tokens: true}).render();

In Simple XML, you can reference this as such:

<panel>
   <chart>
     <title>Enable auto refresh of 30s</title>
     <searchString>index=_internal | top limit=3 sourcetype</searchString>
     <earliestTime>-60m@m</earliestTime>
     <latestTime>now</latestTime>
     <option name="refresh.auto.interval">30</option>
   </chart>
 </panel>

Let me know if this helps!!

0 Karma

chrismm662
Engager
      <option name="refresh.auto.interval">30</option>  

Is marked as deprecated ??

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