Dashboards & Visualizations

[Splunk Cloud] Refresh Whole Dashboard/Forum

jsukenik
Engager

I have a Splunk (6.4.0) instance where I run a dashboard/form that needs to refresh once a minute. When it refreshes, I would like the whole page to refresh (not the individual panels).

This has been accomplished by using either of the following:
< form refresh="60"> or < dashboard refresh="60">

However, I have a Splunk (6.6.0) instance and a Splunk Cloud (6.6.3.2) instance. Both of these, I try replicating the same process for both form and dashboard. However, it will only refresh each individual panel instead of the whole page.

Is there a way to refresh the whole form/dashboard natively (through Simple XML) in these versions of Splunk (specifically Splunk Cloud)?

0 Karma

mayurr98
Super Champion

Hey
You can do that using jQuery!
Just insert this code anywhere in the page:

<script type="text/javascript">
  setTimeout(function(){
    location = ''
  },10000)
</script>

Here 10000ms=10s interval
Let me know if it works!

0 Karma

jsukenik
Engager

It is very cumbersome/difficult to upload things to Splunk Cloud, such as the Javascript file that I would have to upload containing the code you suggested, and could be a hassle to update (unless if I am misunderstanding your post and that all of this can be done in the Simple XML).

Ideally, I would like a solution that uses Simple XML or tools that are easy to use in Splunk Cloud.

0 Karma

mayurr98
Super Champion

Hey I do not think there is any other way to do the same without javascript !

0 Karma

jsukenik
Engager

If that is the case, I believe Splunk should list that as either known features or deprecated features, as they are removing a feature that was used in previous versions of the product.

I appreciate your input.

0 Karma

niketn
Legend

@jsukenik, following refreshes every minute:

   setTimeout("location.reload();",60*1000);

Specially for applications running on cloud, I think partial form submission through <form refresh="60"> (using cache) is better than refreshing (pulling the dashboard from server). But it is your call as to what you want to implement.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...

Splunkbase | Splunk Dashboard Examples App for SimpleXML End of Life

The Splunk Dashboard Examples App for SimpleXML will reach end of support on Dec 19, 2024, after which no new ...

Understanding Generative AI Techniques and Their Application in Cybersecurity

Watch On-Demand Artificial intelligence is the talk of the town nowadays, with industries of all kinds ...