Dashboards & Visualizations

How can I refresh my dashboard every five minutes?

jip31
Motivator

Hi

I want to refresh my Dashboard every five minutes
I use this code but it doesn't work.
Can someone tell me what is the problem?

  <fieldset autoRun="true" submitButton="true">
    <input type="time" token="field1">
      <label></label>
      <default>
        <earliest>-5m</earliest>
        <latest>now</latest>
      </default>
1 Solution

493669
Super Champion
<default>
         <earliest>-5m</earliest>
         <latest>now</latest>
       </default>

This will set default time for time range input as last 5 min and it is not for refreshing the dashboard.
try this:

<form refresh="120">
<fieldset autoRun="true" submitButton="true">
<input type="time" token="field1">
       <label></label>
       <default>
         <earliest>-5m</earliest>
         <latest>now</latest>
       </default>

View solution in original post

p_gurav
Champion

You can use below code :

<dashboard refresh="300">

00 seconds = 5 minutes

0 Karma

Taruchit
Contributor

Hi @p_gurav 

Thank you for sharing your answer. 

In my dashboard, the SPL uses saved search as well to get some data. Thus, when we use 

<dashboard refresh="300">

does it run the saved search at every refresh? Or does the saved search run independently as per its pre-defined schedule only?

Thank you

0 Karma

493669
Super Champion
<default>
         <earliest>-5m</earliest>
         <latest>now</latest>
       </default>

This will set default time for time range input as last 5 min and it is not for refreshing the dashboard.
try this:

<form refresh="120">
<fieldset autoRun="true" submitButton="true">
<input type="time" token="field1">
       <label></label>
       <default>
         <earliest>-5m</earliest>
         <latest>now</latest>
       </default>

nmcloota
Engager

It took me a while to figure out where the closing went, it would have been nice to have seen the full snippet. Thanks for the answer though, helped me!

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