How To Add A Refresh Button In Splunk Dashboard
Hello everyone !!!
Today we have come with a new and interesting topic of Splunk. Every time when we try to refresh our dashboard we click on refresh option of the browser or we click ctrl+ R. But few people or clients want a button in dashboard that will work same as refresh option. So we have come with a solution of this issue. Follow the below steps to add a refresh button in Splunk dashboard.
Step 1:

Step 2:
After that you can find the Source option on the top left corner the dashboard. Click on Source.

Step 3:
Now we have to modify our Source Code of the dashboard.


Inside the fieldset tag we have written a HTML code. Also we have written the inline CSS in between the style tag. We have used a tag to create the hyperlink( mainly for refresh option). After href you have to write the Dashboard Id ( dashboard url name ).For this we have written our sample dashboard id that is refresh_button. Here we have written btn and btn-primary class to create the button. After doing all modifications click on Save to save the changes.
Step 4:
Now see one refresh button has come on the top left side of the dashboard. Click on this Refresh button to refresh this dashboard.

You can download the source code of this sample dashboard from the below button.
Hope this has helped you in achieving the below requirement without fail:
How To Add A Refresh Button In Splunk Dashboard
Happy Splunking !!
Very Effective Blog , thanks a lot !!
Informative..!!
Many thanks Kamesh !! Stay tuned with us , you will get many more such information.
posting source code in a .docx file… smh.
Yes Clayton ;):)
Only works if you have no parameters. What if you have form fields?
In form field also it will work, Just add the code given in the source code in the “fieldset” tag . It worked for me !!
can you show us an example how you did this?
i want to pass parameters thru my form using refresh button above but acting like a submit button.
I have a refresh setting on the panel on the dashboard every 10 minutes,
What happens if the search does not finish within 10 minutes?
If the search does not finish in 10 mins, that search will be still on and simultaneously that search will start again as another job id, hence will put more load on the server for running the same long running search at the same time. That’s a reason based on your search performance you should keep the refresh time for the dashboard.