<?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 Re: how to refresh a panel values based on input token in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-refresh-a-panel-values-based-on-input-token/m-p/372800#M24344</link>
    <description>&lt;P&gt;@krishnarajb2304, &lt;CODE&gt;refresh.auto.interval&lt;/CODE&gt; has been deprecated. Post Splunk Enterprise 6.5 onwards, you should be using &lt;CODE&gt;&amp;lt;refresh&amp;gt;&lt;/CODE&gt; option within search to refresh the panel/s which is/are dependent on the same. Parameter to refresh option can be passed as token similar to the way you intend to via Simple XML. Following is an example (PS: You should be on 6.5 or later for using both &lt;STRONG&gt;refresh&lt;/STRONG&gt; and &lt;STRONG&gt;init&lt;/STRONG&gt; option as used in the following example).&lt;/P&gt;

&lt;P&gt;I have set Interval as 2 minute (2m) in the init section using set command &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
    &amp;lt;label&amp;gt;Auto Refresh Search and Panel/s&amp;lt;/label&amp;gt;
      &amp;lt;init&amp;gt;
        &amp;lt;set token="Interval"&amp;gt;2m&amp;lt;/set&amp;gt;
      &amp;lt;/init&amp;gt;
      &amp;lt;row&amp;gt;
        &amp;lt;panel&amp;gt;
          &amp;lt;single&amp;gt;
            &amp;lt;search&amp;gt;
              &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level!="INFO"
    | stats count&amp;lt;/query&amp;gt;
              &amp;lt;earliest&amp;gt;-7d@d&amp;lt;/earliest&amp;gt;
              &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
              &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
              &amp;lt;refresh&amp;gt;$Interval$&amp;lt;/refresh&amp;gt;
            &amp;lt;/search&amp;gt;
            &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
          &amp;lt;/single&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;&lt;CODE&gt;&amp;lt;refresh&amp;gt;$Interval$&amp;lt;/refresh&amp;gt;&lt;/CODE&gt; sets the Search to refresh every 2 minutes through the token set in the init section.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2017 20:04:26 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-06-28T20:04:26Z</dc:date>
    <item>
      <title>how to refresh a panel values based on input token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-refresh-a-panel-values-based-on-input-token/m-p/372799#M24343</link>
      <description>&lt;P&gt;Right now refreshing the panel using &lt;CODE&gt;&amp;lt;option name="refresh.auto.interval"&amp;gt;120&amp;lt;/option&amp;gt;&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;would like to keep the drop down (token=refresh) 30,60,120,never. Tried to populate with &lt;CODE&gt;&amp;lt;option name="refresh.auto.interval"&amp;gt;$refresh$&amp;lt;/option&amp;gt;&lt;/CODE&gt;  &lt;/P&gt;

&lt;P&gt;Anyway thoughts will be helpful? &lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 23:10:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-refresh-a-panel-values-based-on-input-token/m-p/372799#M24343</guid>
      <dc:creator>krishnarajb2304</dc:creator>
      <dc:date>2017-06-27T23:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to refresh a panel values based on input token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-refresh-a-panel-values-based-on-input-token/m-p/372800#M24344</link>
      <description>&lt;P&gt;@krishnarajb2304, &lt;CODE&gt;refresh.auto.interval&lt;/CODE&gt; has been deprecated. Post Splunk Enterprise 6.5 onwards, you should be using &lt;CODE&gt;&amp;lt;refresh&amp;gt;&lt;/CODE&gt; option within search to refresh the panel/s which is/are dependent on the same. Parameter to refresh option can be passed as token similar to the way you intend to via Simple XML. Following is an example (PS: You should be on 6.5 or later for using both &lt;STRONG&gt;refresh&lt;/STRONG&gt; and &lt;STRONG&gt;init&lt;/STRONG&gt; option as used in the following example).&lt;/P&gt;

&lt;P&gt;I have set Interval as 2 minute (2m) in the init section using set command &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
    &amp;lt;label&amp;gt;Auto Refresh Search and Panel/s&amp;lt;/label&amp;gt;
      &amp;lt;init&amp;gt;
        &amp;lt;set token="Interval"&amp;gt;2m&amp;lt;/set&amp;gt;
      &amp;lt;/init&amp;gt;
      &amp;lt;row&amp;gt;
        &amp;lt;panel&amp;gt;
          &amp;lt;single&amp;gt;
            &amp;lt;search&amp;gt;
              &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level!="INFO"
    | stats count&amp;lt;/query&amp;gt;
              &amp;lt;earliest&amp;gt;-7d@d&amp;lt;/earliest&amp;gt;
              &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
              &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
              &amp;lt;refresh&amp;gt;$Interval$&amp;lt;/refresh&amp;gt;
            &amp;lt;/search&amp;gt;
            &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
          &amp;lt;/single&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;&lt;CODE&gt;&amp;lt;refresh&amp;gt;$Interval$&amp;lt;/refresh&amp;gt;&lt;/CODE&gt; sets the Search to refresh every 2 minutes through the token set in the init section.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 20:04:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-refresh-a-panel-values-based-on-input-token/m-p/372800#M24344</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-06-28T20:04:26Z</dc:date>
    </item>
  </channel>
</rss>

