<?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 auto-fill/refresh a filter? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-auto-fill-refresh-a-filter/m-p/386090#M69306</link>
    <description>&lt;P&gt;Here you go - &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/Viz/tokens"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.2/Viz/tokens&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Aug 2018 04:59:39 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2018-08-08T04:59:39Z</dc:date>
    <item>
      <title>How to auto-fill/refresh a filter?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-auto-fill-refresh-a-filter/m-p/386085#M69301</link>
      <description>&lt;P&gt;Hi Community!&lt;/P&gt;

&lt;P&gt;I would like the filter named  &lt;CODE&gt;[Total Distinct Customer in 2017 //ignore&lt;/CODE&gt; and  &lt;CODE&gt;Total Distinct Customer in 2018 //ignore]&lt;/CODE&gt; ,as attached in the picture, to fill itself with the number in the  &lt;CODE&gt;single value panel&lt;/CODE&gt; without having the user to click on it. &lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5479i9D6290C65997A3A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks before!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 02:21:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-auto-fill-refresh-a-filter/m-p/386085#M69301</guid>
      <dc:creator>andrehl</dc:creator>
      <dc:date>2018-08-07T02:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto-fill/refresh a filter?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-auto-fill-refresh-a-filter/m-p/386086#M69302</link>
      <description>&lt;P&gt;@andrehl ,&lt;/P&gt;

&lt;P&gt;You could use a token (set once the search is done) to set the value.&lt;/P&gt;

&lt;P&gt;E.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="sourcetype" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;sourcetype&amp;lt;/label&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;sourcetype&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;sourcetype&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;|metadata type=sourcetypes|fields sourcetype&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="text" token="text"&amp;gt;
      &amp;lt;label&amp;gt;Text&amp;lt;/label&amp;gt;
      &amp;lt;!--Use the token which is set below as default vlaue of text box--&amp;gt;      
      &amp;lt;default&amp;gt;$mycount$&amp;lt;/default&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=_* sourcetype=$sourcetype$|stats count&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;!--set the token value to the field name . Here its count--&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;set token="mycount"&amp;gt;$result.count$&amp;lt;/set&amp;gt;
          &amp;lt;/done&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;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Aug 2018 03:09:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-auto-fill-refresh-a-filter/m-p/386086#M69302</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-08-07T03:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto-fill/refresh a filter?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-auto-fill-refresh-a-filter/m-p/386087#M69303</link>
      <description>&lt;P&gt;my apology, I forgot to mention that my Time Range has to be an 'All Time'. Using your method, I can't seem to make it wait 'til the end of my search query.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 01:32:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-auto-fill-refresh-a-filter/m-p/386087#M69303</guid>
      <dc:creator>andrehl</dc:creator>
      <dc:date>2018-08-08T01:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto-fill/refresh a filter?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-auto-fill-refresh-a-filter/m-p/386088#M69304</link>
      <description>&lt;P&gt;actually it does not matter because unless your search is completed, you don't have complete data and also the single value is also incomplete. So as soon as your result is complete, the value is being automatically shown in text box as well. You could use &lt;CODE&gt;progress&lt;/CODE&gt; also instead of done but as mentioned its not the final result&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 02:09:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-auto-fill-refresh-a-filter/m-p/386088#M69304</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-08-08T02:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto-fill/refresh a filter?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-auto-fill-refresh-a-filter/m-p/386089#M69305</link>
      <description>&lt;P&gt;It worked like a charm! Thank you so much!&lt;BR /&gt;
May I know where can I get all the XML references from? &lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 03:27:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-auto-fill-refresh-a-filter/m-p/386089#M69305</guid>
      <dc:creator>andrehl</dc:creator>
      <dc:date>2018-08-08T03:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto-fill/refresh a filter?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-auto-fill-refresh-a-filter/m-p/386090#M69306</link>
      <description>&lt;P&gt;Here you go - &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/Viz/tokens"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.2/Viz/tokens&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 04:59:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-auto-fill-refresh-a-filter/m-p/386090#M69306</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-08-08T04:59:39Z</dc:date>
    </item>
  </channel>
</rss>

