<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic define refresh interval for form/dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/define-refresh-interval-for-form-dashboard/m-p/208142#M43316</link>
    <description>&lt;P&gt;I have one dashboard with multiple panels(in line searches)&lt;BR /&gt;
How can I change the refresh interval for my dashboard/form.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2016 07:40:24 GMT</pubDate>
    <dc:creator>rashid47010</dc:creator>
    <dc:date>2016-12-29T07:40:24Z</dc:date>
    <item>
      <title>define refresh interval for form/dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/define-refresh-interval-for-form-dashboard/m-p/208142#M43316</link>
      <description>&lt;P&gt;I have one dashboard with multiple panels(in line searches)&lt;BR /&gt;
How can I change the refresh interval for my dashboard/form.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 07:40:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/define-refresh-interval-for-form-dashboard/m-p/208142#M43316</guid>
      <dc:creator>rashid47010</dc:creator>
      <dc:date>2016-12-29T07:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: define refresh interval for form/dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/define-refresh-interval-for-form-dashboard/m-p/208143#M43317</link>
      <description>&lt;P&gt;It depends on the version of Splunk you are using. Since the latest version gives you the option to refresh the query within a panel then start from there:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search&amp;gt;
     &amp;lt;query&amp;gt;
     &amp;lt;/query&amp;gt;
     &amp;lt;earliest&amp;gt;&amp;lt;/earliest&amp;gt;
     &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
     &amp;lt;sampleRatio&amp;gt;&amp;lt;/sampleRatio&amp;gt;
     &amp;lt;refresh&amp;gt;5m&amp;lt;/refresh&amp;gt;
   &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Otherwise depending on the Splunk version following might work:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Form refresh:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form refresh="30"&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Dashboard refresh&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard refresh="30"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Panel refresh&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="refresh.auto.interval"&amp;gt;60&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Dec 2016 07:49:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/define-refresh-interval-for-form-dashboard/m-p/208143#M43317</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2016-12-29T07:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: define refresh interval for form/dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/define-refresh-interval-for-form-dashboard/m-p/208144#M43318</link>
      <description>&lt;P&gt;hi&lt;BR /&gt;
little confusing to me&lt;/P&gt;

&lt;P&gt;I have on form, where I have three panels. each panel have query. I want to refresh all panels once.&lt;/P&gt;

&lt;P&gt;I use form refresh query "  " but it gives me error. my xml code is &lt;/P&gt;

&lt;P&gt;xxx Dashboard&lt;BR /&gt;
  xxx&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="time" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;Search&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;
    &amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;


&amp;lt;panel&amp;gt;
  &amp;lt;table&amp;gt;
    &amp;lt;title&amp;gt;Malware Found&amp;lt;/title&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=xxx_sxx xxxxxxxx | stats values(vxxxn),values(file_namxxxx),values(Fiezzzh),values(A\\\\) by xxxx,xx,sigxxx&amp;lt;/query&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
    &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
    &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
    &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
    &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
  &amp;lt;/table&amp;gt;
&amp;lt;/panel&amp;gt;


&amp;lt;panel&amp;gt;
  &amp;lt;table&amp;gt;
    &amp;lt;titlesssE&amp;lt;/title&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=sss | eval est_time=strftime(_time, "%Y-%d-%m %H:%M") |stats values(ss) as "Action" ,values(ss1) as "sss",values(ssss),values(css) as URL,values(ssr) as "Source User",values(sssr) as "eeer",values(eert),values(eee),values(seec)  by eeee&amp;lt;/query&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
    &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
    &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
    &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
    &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
  &amp;lt;/table&amp;gt;
&amp;lt;/panel&amp;gt;


&amp;lt;panel&amp;gt;
  &amp;lt;chart&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Jan 2017 19:28:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/define-refresh-interval-for-form-dashboard/m-p/208144#M43318</guid>
      <dc:creator>rashid47010</dc:creator>
      <dc:date>2017-01-01T19:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: define refresh interval for form/dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/define-refresh-interval-for-form-dashboard/m-p/208145#M43319</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;I faced the same issue, create a  hidden panel on your dashboard and set the refresh interval as per your requirement for that panel, once that refreshes the entire dashboard will refresh, you will have to set the refresh interval individually for each query also

&amp;lt;panel&amp;gt;
      &amp;lt;single depends="$nothing$"&amp;gt;
        &amp;lt;search id="abc"&amp;gt;
          &amp;lt;query&amp;gt;"Put any of your queries here"
         &amp;lt;/query&amp;gt;
         &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="refresh.auto.interval"&amp;gt;60&amp;lt;/option&amp;gt;
      &amp;lt;/single&amp;gt;
  &amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Jan 2017 19:45:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/define-refresh-interval-for-form-dashboard/m-p/208145#M43319</guid>
      <dc:creator>avaishsplunk</dc:creator>
      <dc:date>2017-01-01T19:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: define refresh interval for form/dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/define-refresh-interval-for-form-dashboard/m-p/208146#M43320</link>
      <description>&lt;P&gt;Here is a sample code of a dashobard which refreshes every &lt;CODE&gt;15 secs&lt;/CODE&gt; in &lt;CODE&gt;Splunk 6.4.2&lt;/CODE&gt; irrespective of however many panels it has. My example has three panels and doesn't need each query refresh but only &lt;CODE&gt;&amp;lt;dashboard refresh="15"&amp;gt;&lt;/CODE&gt; at the top:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard refresh="15"&amp;gt;
  &amp;lt;label&amp;gt;timer&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Panel 1&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval abc=relative_time(now(), "-1s") | table abc&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;undefined&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;undefined&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Panel 2&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval abc=relative_time(now(), "-2s") | table abc&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;undefined&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;undefined&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Panel 3&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval abc=relative_time(now(), "+1s") | table abc&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;undefined&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;undefined&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you happen to have &lt;CODE&gt;&amp;lt;form&amp;gt;...&amp;lt;/form&amp;gt;&lt;/CODE&gt; use it &lt;CODE&gt;refresh="15"&lt;/CODE&gt; similarly like it is used in dashboard above &lt;CODE&gt;&amp;lt;form refresh="15"&amp;gt;...&amp;lt;/form&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Same should work in &lt;CODE&gt;6.5.0&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2017 01:22:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/define-refresh-interval-for-form-dashboard/m-p/208146#M43320</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2017-01-02T01:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: define refresh interval for form/dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/define-refresh-interval-for-form-dashboard/m-p/208147#M43321</link>
      <description>&lt;P&gt;Which version of Splunk are you using. You might not need to refresh all the queries piecemeal and can refresh the entire dashboard every 15 secs. using &lt;CODE&gt;refresh="15"&lt;/CODE&gt; . I have tried it on &lt;CODE&gt;6.4.2&lt;/CODE&gt; and &lt;CODE&gt;6.5.0&lt;/CODE&gt;. See my comment above for sample code of how to make it work and see if that helps in your case.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2017 01:38:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/define-refresh-interval-for-form-dashboard/m-p/208147#M43321</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2017-01-02T01:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: define refresh interval for form/dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/define-refresh-interval-for-form-dashboard/m-p/208148#M43322</link>
      <description>&lt;P&gt;Hello Gokadroid,&lt;/P&gt;

&lt;P&gt;This probably will work for dashboard, in my case it was a form this was the reason putting refresh in the top will not work.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2017 01:52:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/define-refresh-interval-for-form-dashboard/m-p/208148#M43322</guid>
      <dc:creator>avaishsplunk</dc:creator>
      <dc:date>2017-01-02T01:52:39Z</dc:date>
    </item>
  </channel>
</rss>

