<?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 do I set choice value if I need fields where value is greater than zero? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-choice-value-if-I-need-fields-where-value-is/m-p/399686#M95906</link>
    <description>&lt;P&gt;Thanks, let me try it.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Almar&lt;/P&gt;</description>
    <pubDate>Thu, 22 Nov 2018 20:15:57 GMT</pubDate>
    <dc:creator>almar_cabato</dc:creator>
    <dc:date>2018-11-22T20:15:57Z</dc:date>
    <item>
      <title>How do I set choice value if I need fields where value is greater than zero?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-choice-value-if-I-need-fields-where-value-is/m-p/399684#M95904</link>
      <description>&lt;P&gt;I tried below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="radio" token="duration.input" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;Call Duration&amp;lt;/label&amp;gt;
  &amp;lt;choice value="&amp;gt;0"&amp;gt;Non-Zero&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="0"&amp;gt;Zero&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
  &amp;lt;default&amp;gt;All&amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;


             sourcetype=callrecords
              duration="$duration.input$"
              | table field1, field2, field3
      &amp;lt;/query&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I cannot get this working when I choose "Non-Zero."&lt;/P&gt;

&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 10:47:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-choice-value-if-I-need-fields-where-value-is/m-p/399684#M95904</guid>
      <dc:creator>almar_cabato</dc:creator>
      <dc:date>2018-11-21T10:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set choice value if I need fields where value is greater than zero?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-choice-value-if-I-need-fields-where-value-is/m-p/399685#M95905</link>
      <description>&lt;P&gt;Hi Almar,&lt;/P&gt;

&lt;P&gt;You've got a couple of options here:&lt;/P&gt;

&lt;P&gt;You can either use the token prefix and place a &lt;CODE&gt;search&lt;/CODE&gt; or &lt;CODE&gt;where&lt;/CODE&gt; command in there, or do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Test1&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="radio" token="values_token"&amp;gt;
      &amp;lt;label&amp;gt;Values&amp;lt;/label&amp;gt;
      &amp;lt;choice value="where count=0"&amp;gt;Zero&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="where count!=0"&amp;gt;Non-Zero&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="where isnotnull(count)"&amp;gt;All&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;table&amp;gt;
        &amp;lt;title&amp;gt;Results&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults count=10 |   streamstats count | eval count=count-1 | $values_token$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/table&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>Wed, 21 Nov 2018 11:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-choice-value-if-I-need-fields-where-value-is/m-p/399685#M95905</guid>
      <dc:creator>ktugwell_splunk</dc:creator>
      <dc:date>2018-11-21T11:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set choice value if I need fields where value is greater than zero?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-choice-value-if-I-need-fields-where-value-is/m-p/399686#M95906</link>
      <description>&lt;P&gt;Thanks, let me try it.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Almar&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 20:15:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-choice-value-if-I-need-fields-where-value-is/m-p/399686#M95906</guid>
      <dc:creator>almar_cabato</dc:creator>
      <dc:date>2018-11-22T20:15:57Z</dc:date>
    </item>
  </channel>
</rss>

