<?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 remove results which are 0 in my timechart search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-results-which-are-0-in-my-timechart-search/m-p/250712#M74912</link>
    <description>&lt;P&gt;Depends on what you mean.  Are you trying to remove series whose values are zero, or remove dates which have no activity, or what?&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2017 21:03:52 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-01-23T21:03:52Z</dc:date>
    <item>
      <title>How to remove results which are 0 in my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-results-which-are-0-in-my-timechart-search/m-p/250711#M74911</link>
      <description>&lt;P&gt;I am trying to find out the index usage per day and getting total usage at the end as well. but if i want to remove all the column from search result which are 0. how to do that?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal metrics kb group="per_index_thruput" NOT series=_* NOT series="*summary*" host=*appblx*
| eval totalMB = kb /1024
| eval totalGB = round(totalMB /1024, 2)
| timechart useother=f limit=0 span=1d sum(totalGB) as total by series  |addtotals fieldname=TotaldailyUsageinGB
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jan 2017 20:14:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-results-which-are-0-in-my-timechart-search/m-p/250711#M74911</guid>
      <dc:creator>khilawar4</dc:creator>
      <dc:date>2017-01-23T20:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove results which are 0 in my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-results-which-are-0-in-my-timechart-search/m-p/250712#M74912</link>
      <description>&lt;P&gt;Depends on what you mean.  Are you trying to remove series whose values are zero, or remove dates which have no activity, or what?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 21:03:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-results-which-are-0-in-my-timechart-search/m-p/250712#M74912</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-01-23T21:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove results which are 0 in my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-results-which-are-0-in-my-timechart-search/m-p/250713#M74913</link>
      <description>&lt;P&gt;I am trying to remove output columns (series) whose values are 0&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 21:07:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-results-which-are-0-in-my-timechart-search/m-p/250713#M74913</guid>
      <dc:creator>khilawar4</dc:creator>
      <dc:date>2017-01-23T21:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove results which are 0 in my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-results-which-are-0-in-my-timechart-search/m-p/250714#M74914</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal metrics kb group="per_index_thruput" NOT series=_* NOT series="*summary*" host=*appblx*
| eval totalGB = round(kb /1024/1024,2)
| bucket span=1d _time
| chart sum(totalGB) as total by _time series limit=0 |addtotals fieldname=TotaldailyUsageinGB
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jan 2017 21:07:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-results-which-are-0-in-my-timechart-search/m-p/250714#M74914</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-23T21:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove results which are 0 in my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-results-which-are-0-in-my-timechart-search/m-p/250715#M74915</link>
      <description>&lt;P&gt;Still same.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 21:14:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-results-which-are-0-in-my-timechart-search/m-p/250715#M74915</guid>
      <dc:creator>khilawar4</dc:creator>
      <dc:date>2017-01-23T21:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove results which are 0 in my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-results-which-are-0-in-my-timechart-search/m-p/250716#M74916</link>
      <description>&lt;P&gt;below query worked for me , added "where" condition. &lt;/P&gt;

&lt;P&gt;index=&lt;EM&gt;internal metrics kb group="per_index_thruput" NOT series=&lt;/EM&gt;* NOT series="&lt;EM&gt;summary&lt;/EM&gt;" host=&lt;EM&gt;appblx&lt;/EM&gt;&lt;BR /&gt;
 | eval totalGB = round(kb/1024/1024,2) | where totalGB &amp;gt; 0&lt;BR /&gt;
 | bucket span=1d _time &lt;BR /&gt;
 | chart sum(totalGB) as total by _time series limit=0 |addtotals fieldname=TotaldailyUsageinGB&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:31:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-results-which-are-0-in-my-timechart-search/m-p/250716#M74916</guid>
      <dc:creator>khilawar4</dc:creator>
      <dc:date>2020-09-29T12:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove results which are 0 in my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-results-which-are-0-in-my-timechart-search/m-p/250717#M74917</link>
      <description>&lt;P&gt;How about this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=_internal metrics kb group="per_index_thruput" NOT series=_* NOT series="*summary*" host=*appblx*
 | eval totalMB = kb /1024
 | eval totalGB = round(totalMB /1024, 2)
 | timechart useother=f limit=0 span=1d sum(totalGB) as total by series  |where total&amp;gt;0|addtotals fieldname=TotaldailyUsageinGB
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jan 2017 21:22:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-results-which-are-0-in-my-timechart-search/m-p/250717#M74917</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-01-23T21:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove results which are 0 in my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-results-which-are-0-in-my-timechart-search/m-p/250718#M74918</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| index=_internal metrics kb group="per_index_thruput" NOT series=_* NOT series="*summary*" host=*appblx*
| bin _time span=1d
| chart limit=0 eval(round(sum(kb)/1024/1024,2)) by _time series
| foreach * [eval "&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;" = if (isnull('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;') OR '&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;' = 0, null(), '&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;')]
| addtotals fieldname=TotaldailyUsageinGB
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jan 2017 21:31:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-results-which-are-0-in-my-timechart-search/m-p/250718#M74918</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-01-23T21:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove results which are 0 in my timechart search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-results-which-are-0-in-my-timechart-search/m-p/250719#M74919</link>
      <description>&lt;P&gt;thx for the comment . &lt;BR /&gt;
your query doesn't give result somehow but below query works.&lt;/P&gt;

&lt;P&gt;below query worked for me , added "where" condition.&lt;/P&gt;

&lt;P&gt;index=internal metrics kb group="per_index_thruput" NOT series=* NOT series="summary" host=appblx&lt;BR /&gt;
| eval totalGB = round(kb/1024/1024,2) | where totalGB &amp;gt; 0&lt;BR /&gt;
| bucket span=1d _time &lt;BR /&gt;
| chart sum(totalGB) as total by _time series limit=0 |addtotals fieldname=TotaldailyUsageinGB&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:31:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-results-which-are-0-in-my-timechart-search/m-p/250719#M74919</guid>
      <dc:creator>khilawar4</dc:creator>
      <dc:date>2020-09-29T12:31:38Z</dc:date>
    </item>
  </channel>
</rss>

