Dashboards & Visualizations

How do I disable the auto refresh delay on all dashboards?

cotyp
Path Finder

I am looking to disable the auto refresh delay on all dashboards as an admin. Is there any way to do this?

Tags (1)
0 Karma

p_gurav
Champion

Hi,
You can disable it by putting <dashboard refresh="0"> in dashboard

cotyp
Path Finder

Thank you p_gurav but that would only solve it one dashboard. I am looking for a solution that can be added to a conf file or something of that sort.

0 Karma

ddrillic
Ultra Champion

We spoke about it last year at Does a dashboard keep refreshing itself by default?

A lot of cycles are wasted due to this feature ; -) apparently you need to do it for each dashboard.

0 Karma

cotyp
Path Finder

bummer! That's not what I want 😞

0 Karma

ddrillic
Ultra Champion

<dashboard refresh="0"> disables the refresh.

0 Karma

niketn
Legend

@cotyp what do you mean by auto refresh delay? Do you already have dashboard refresh? Do you want to have faster dashboard refresh or no dashboard refresh?

If you want dashboard refresh value as configurable, you can add the JavaScript to App's appserver/static folder from the following answer and include the JavaScript to your existing dashboard: https://answers.splunk.com/answers/550114/how-to-make-form-refresh-value-configurable.html

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

cotyp
Path Finder

I am trying to have no dashboard refresh

0 Karma

niketn
Legend

With the approach in the above answer, you need to sped effort once to have all your dashboard point to above a JavaScript file so that refresh time becomes configurable. Then you would need to modify the JavaScript when you have to change or disable the dashboard refresh.

Hope this is clear.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

niketn
Legend

@cotyp with the above approach one time configuration is required on all dashboards and then post that dashboard refresh becomes configurable. You can comment out JS code and dashboard refresh stops.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

deepashri_123
Motivator

hey cotyp,

Refer this link below:
https://answers.splunk.com/answers/508962/auto-refresh-a-dashboard.html

You have to edit xml and make changes on all dashboards.

0 Karma

cotyp
Path Finder

I am looking to the opposite of what you are suggesting. I want to not have dashboards be able to auto-refresh.

0 Karma

parulguha
Loves-to-Learn

Hi @cotyp 
Were you able to find the solution to your problem. Please share the solution if you found one.
I want to do the same, disable autorefresh from all the existing Dashbaords in our environment?

0 Karma

inventsekar
SplunkTrust
SplunkTrust

Hi @parulguha ... if you could copy-paste the html code of the dashboard (after removing ip address, hostnames, etc), we can help you better, .. thanks. 

0 Karma

parulguha
Loves-to-Learn

@inventsekar Thank you for your response.

There is not just one Dashboard.

We need to list out all the Dashboards that have autorefresh enabled. For which we don’t want to go one by one looking into the dashboards to find out because there are more than 1000 dashboards.

Thank you in advance.

0 Karma
Get Updates on the Splunk Community!

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...