<?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 Can't get  tag to work in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-t-get-tag-to-work/m-p/365498#M165823</link>
    <description>&lt;P&gt;I have a dashboard with several prebuilt panels and several non-prebuilt panels.&lt;/P&gt;

&lt;P&gt;At the top of the form I have:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="refresh" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;Refresh&amp;lt;/label&amp;gt;
  &amp;lt;choice value="60"&amp;gt;1 minute&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="300"&amp;gt;5 minutes&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="600"&amp;gt;10 minutes&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="900"&amp;gt;15 minutes&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="0"&amp;gt;Never&amp;lt;/choice&amp;gt;
  &amp;lt;default&amp;gt;Never&amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For the value attribute I have tried integers (as above) and SPL time formats (e.g. 5m).&lt;/P&gt;

&lt;P&gt;Within various searches in both prebuilt and non-prebuilt panels I have added:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;refresh&amp;gt;$refresh$&amp;lt;/refresh&amp;gt;
&amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;shown in several online postings as well as the documentation for our version of Splunk:  6.6.2, build 4b804538c686.&lt;/P&gt;

&lt;P&gt;Nothing I have tried seems to work as I expect. The prebuilt panels run once and stop. The non-prebuilt panels refresh every minute. I think (it's a little hard to tell by hovering over the little controls).&lt;/P&gt;

&lt;P&gt;Am I doing something wrong here? I have other dropdowns on the page that work, and the variables defined by those dropdowns interpolate in the prebuilt panels. If I add $refresh$ to a panel title it shows up just as I expect.&lt;/P&gt;

&lt;P&gt;As far as I can tell the  tag does not work, or at least it does not work as I expect. I have tried constants in it and they don't seem to change anything. Then once in a while it surprises me in some non-reproducible way.&lt;/P&gt;

&lt;P&gt;Can someone tell me what I'm doing wrong?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2017 00:13:26 GMT</pubDate>
    <dc:creator>madkins23</dc:creator>
    <dc:date>2017-10-04T00:13:26Z</dc:date>
    <item>
      <title>Can't get  tag to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-get-tag-to-work/m-p/365498#M165823</link>
      <description>&lt;P&gt;I have a dashboard with several prebuilt panels and several non-prebuilt panels.&lt;/P&gt;

&lt;P&gt;At the top of the form I have:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="refresh" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;Refresh&amp;lt;/label&amp;gt;
  &amp;lt;choice value="60"&amp;gt;1 minute&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="300"&amp;gt;5 minutes&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="600"&amp;gt;10 minutes&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="900"&amp;gt;15 minutes&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="0"&amp;gt;Never&amp;lt;/choice&amp;gt;
  &amp;lt;default&amp;gt;Never&amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For the value attribute I have tried integers (as above) and SPL time formats (e.g. 5m).&lt;/P&gt;

&lt;P&gt;Within various searches in both prebuilt and non-prebuilt panels I have added:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;refresh&amp;gt;$refresh$&amp;lt;/refresh&amp;gt;
&amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;shown in several online postings as well as the documentation for our version of Splunk:  6.6.2, build 4b804538c686.&lt;/P&gt;

&lt;P&gt;Nothing I have tried seems to work as I expect. The prebuilt panels run once and stop. The non-prebuilt panels refresh every minute. I think (it's a little hard to tell by hovering over the little controls).&lt;/P&gt;

&lt;P&gt;Am I doing something wrong here? I have other dropdowns on the page that work, and the variables defined by those dropdowns interpolate in the prebuilt panels. If I add $refresh$ to a panel title it shows up just as I expect.&lt;/P&gt;

&lt;P&gt;As far as I can tell the  tag does not work, or at least it does not work as I expect. I have tried constants in it and they don't seem to change anything. Then once in a while it surprises me in some non-reproducible way.&lt;/P&gt;

&lt;P&gt;Can someone tell me what I'm doing wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 00:13:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-get-tag-to-work/m-p/365498#M165823</guid>
      <dc:creator>madkins23</dc:creator>
      <dc:date>2017-10-04T00:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get  tag to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-get-tag-to-work/m-p/365499#M165824</link>
      <description>&lt;P&gt;@madkins23, seems like you missed adding &lt;CODE&gt;s&lt;/CODE&gt; for seconds in all the choices. Like 1 minute = &lt;CODE&gt;60s&lt;/CODE&gt;. Following run anywhere dashboard works fine for me. Also I changed Never to empty value rather than a number.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Dynamic Refresh&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="refresh" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Refresh&amp;lt;/label&amp;gt;
      &amp;lt;choice value="60s"&amp;gt;1 minute&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="300s"&amp;gt;5 minutes&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="600s"&amp;gt;10 minutes&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="900s"&amp;gt;15 minutes&amp;lt;/choice&amp;gt;
      &amp;lt;choice value=""&amp;gt;Never&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&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
          | timechart count&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;refresh&amp;gt;$refresh$&amp;lt;/refresh&amp;gt;
          &amp;lt;refreshType&amp;gt;delay&amp;lt;/refreshType&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/single&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also if your intent is to control the refresh of entire dashboard you can do the same with JavaScript by coding form &lt;CODE&gt;refresh&lt;/CODE&gt; time.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 09:20:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-get-tag-to-work/m-p/365499#M165824</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-04T09:20:03Z</dc:date>
    </item>
  </channel>
</rss>

