<?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 show only fields over 0? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-only-fields-over-0/m-p/164591#M46738</link>
    <description>&lt;P&gt;cont=f did the trick with timechart... thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 23 Apr 2015 13:19:22 GMT</pubDate>
    <dc:creator>flacunsia</dc:creator>
    <dc:date>2015-04-23T13:19:22Z</dc:date>
    <item>
      <title>How to show only fields over 0?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-only-fields-over-0/m-p/164589#M46736</link>
      <description>&lt;P&gt;I have a query like this:&lt;BR /&gt;
index=main Product=$product$ | time chart count by Quantity&lt;BR /&gt;
 But I need it to return only values &amp;gt; 0&lt;BR /&gt;
What should I change here?&lt;BR /&gt;
Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 19:38:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-only-fields-over-0/m-p/164589#M46736</guid>
      <dc:creator>vtsguerrero</dc:creator>
      <dc:date>2014-07-30T19:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to show only fields over 0?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-only-fields-over-0/m-p/164590#M46737</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=main Product=$product$ | timechart count by Quantity | where count &amp;gt; 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Updated&lt;/P&gt;

&lt;P&gt;The search wont work when the timechart output is like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time Quantity1  Quantity2 Quantity3
T1     100        0         120
T2      0         1          1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you just need quantities where count is greater than zero., then use stats&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main Product=$product$ | stats count by Quantity | where count &amp;gt; 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to show timechart and not to show dips when value is zero then do this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main Product=$product$ | timechart cont=f count by Quantity
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Jul 2014 19:40:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-only-fields-over-0/m-p/164590#M46737</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-30T19:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to show only fields over 0?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-only-fields-over-0/m-p/164591#M46738</link>
      <description>&lt;P&gt;cont=f did the trick with timechart... thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 13:19:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-only-fields-over-0/m-p/164591#M46738</guid>
      <dc:creator>flacunsia</dc:creator>
      <dc:date>2015-04-23T13:19:22Z</dc:date>
    </item>
  </channel>
</rss>

