Dashboards & Visualizations

How to add refresh button to dashboard?

Splunk_noobie
Path Finder

Hi Team,

 

I would like to add a refresh button to the HTML template of the dashboard, to reset all the tokens and display the info from starting based on my selection. 

 

Any idea on where to start with this?

Labels (3)
0 Karma

tshah-splunk
Splunk Employee
Splunk Employee

Hey @Splunk_noobie,

You can add the below code to the source of your dashboard and have a refresh button in the dashboard to reset all the tokens set. 

<fieldset submitButton="false" autoRun="false">
    <html>
       <style>
         div.fieldset.dashboard-form-globalfieldset div.dashboard-element.html.dashboard-element-html {
        display: inline-block;
           }
       </style>
       <a href="<<dashboard_id>>" class="btn btn-primary">Refresh</a>
     </html>
  </fieldset>

PS. Don't forget to change the dashboard_id. 

Reference can be found here - https://splunkonbigdata.com/how-to-add-a-refresh-button-in-splunk-dashboard/ 

---
If you find the answer helpful, an upvote/karma is appreciated
0 Karma
Get Updates on the Splunk Community!

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...

Splunk AppDynamics Agents Webinar Series

Mark your calendars! On June 24th at 12PM PST, we’re going live with the second session of our Splunk ...

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2025 SplunkTrust is officially open! If you ...