Hi
The xml for my Dashboard consists of multiple chart tags within a dashboard tag. What can I add to it to make the Dashboard automatically refresh? I don't have a view tag to add the refresh parameter in?
dashboard
chart
/chart
chart
/chart
/dashboard
I'm sure there is a simple solution to this, but I can't figure it out to save my life.
Thanks in advance
answer here
Use the refresh attribute to set how frequently, in seconds, to refresh the dashboard.
For example, <dashboard refresh="30">
sets the refresh rate to 30 seconds.
answer here
Use the refresh attribute to set how frequently, in seconds, to refresh the dashboard.
For example, <dashboard refresh="30">
sets the refresh rate to 30 seconds.
Use refresh attribute in form tag, and attribute value is in seconds.
<form refresh="15">
Dashboard will auto refresh in 15 seconds.
Thank you. This worked for me.
This worked great for us. Thank you.
Yes. But not in simple XML. See here
For non-saved searched, the answer is quite simple.
For saved searches, its a bit more complicated - I posted an answer of at the bottom of the link that accomodates this.
Thanks jonuwz. That works.
Out of interest, do you know how I can make individual charts refresh, rather than the whole page? If it is something simple, like adding in a 'refresh' parameter into their tags, then great. If it is more complicated than that, then I will pose the question separately.
Adding to sherm77's response, you can set the refresh type and refresh interval for individual panels using the <search> element.
The <refreshType> element is either 'interval' or 'delay'. A value of 'interval' means a <refresh> value of 30 seconds causes a refresh every 30 seconds regardless of the state of the search. A value of 'delay' means the 30 second countdown only begins once the search has completed.
Example Usage:
<form>
<row>
<panel>
<table>
<search>
<query> ... </query>
<earliest>-60m@m</earliest>
<latest>now</latest>
<refresh>60</refresh>
<refreshType>delay</refreshType>
</search>
</table>
</panel>
</row>
</form>
Here is the reference page for the different options for Simple XML: http://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML
Do a search in the page for "refresh" in this page and you'll find 48 occurrences. The answer by @jonuwz is still accurate in 6.1.4, but there are more options in Simple XML in the newer versions, but they aren't all the same, so check out the options.
This is how you get a chart to refresh every 10 seconds.. IMHO, this looks a whole lot better than the entire page refreshing. You can even stagger the refreshes so all of the panels don't go blank at the same time. Also take in consideration how long it takes to load the individual panels.