How To Add A Refresh Button In Splunk Dashboard

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:

Open a dashboard. You can find the Edit option on the top right corner of the dashboard. Click on Edit.

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.

SourceCode

Hope this has helped you in achieving the below requirement without fail:

How To Add A Refresh Button In Splunk Dashboard

Happy Splunking !!

Advertisements

4 comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.