<?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 Remove rows without result from timechart count query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Remove-rows-without-result-from-timechart-count-query/m-p/378670#M110991</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;
I have the following query: &lt;BR /&gt;
&lt;CODE&gt;sourcetype=access_* action="purchase"&lt;BR /&gt;
|  timechart count by productName usenull=f useother=f&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;And I get a timechart with zeros: &lt;A href="https://imgur.com/a/XWdbIZH"&gt;https://imgur.com/a/XWdbIZH&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Do you know a way to remove that rows with zeros? Is it possible to reference timechart "count" as a variable to use it with "where" command: &lt;CODE&gt;| where $count$ &amp;gt; 0&lt;/CODE&gt; , or something like that?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Sun, 19 May 2019 13:17:03 GMT</pubDate>
    <dc:creator>jam00</dc:creator>
    <dc:date>2019-05-19T13:17:03Z</dc:date>
    <item>
      <title>Remove rows without result from timechart count query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-rows-without-result-from-timechart-count-query/m-p/378670#M110991</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I have the following query: &lt;BR /&gt;
&lt;CODE&gt;sourcetype=access_* action="purchase"&lt;BR /&gt;
|  timechart count by productName usenull=f useother=f&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;And I get a timechart with zeros: &lt;A href="https://imgur.com/a/XWdbIZH"&gt;https://imgur.com/a/XWdbIZH&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Do you know a way to remove that rows with zeros? Is it possible to reference timechart "count" as a variable to use it with "where" command: &lt;CODE&gt;| where $count$ &amp;gt; 0&lt;/CODE&gt; , or something like that?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sun, 19 May 2019 13:17:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-rows-without-result-from-timechart-count-query/m-p/378670#M110991</guid>
      <dc:creator>jam00</dc:creator>
      <dc:date>2019-05-19T13:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows without result from timechart count query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-rows-without-result-from-timechart-count-query/m-p/378671#M110992</link>
      <description>&lt;P&gt;@jam00 you should try timechart option &lt;CODE&gt;cont=f&lt;/CODE&gt;, the rows with all zeros will be removed.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access_* action="purchase" 
| timechart count by productName cont=f usenull=f useother=f
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Refer to documentation: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Timechart#Optional_arguments"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Timechart#Optional_arguments&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 May 2019 15:00:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-rows-without-result-from-timechart-count-query/m-p/378671#M110992</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-05-19T15:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows without result from timechart count query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-rows-without-result-from-timechart-count-query/m-p/378672#M110993</link>
      <description>&lt;P&gt;@niketnilay I hadn't considered that argument. Thank you so much.&lt;/P&gt;</description>
      <pubDate>Sun, 19 May 2019 19:13:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-rows-without-result-from-timechart-count-query/m-p/378672#M110993</guid>
      <dc:creator>jam00</dc:creator>
      <dc:date>2019-05-19T19:13:10Z</dc:date>
    </item>
  </channel>
</rss>

