<?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 can I include zero/empty count buckets in tables/charts? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-include-zero-empty-count-buckets-in-tables-charts/m-p/109008#M28434</link>
    <description>&lt;P&gt;I'm assuming you are bucketing in terms of totalTime.  What worked for me is the following search structure:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search | chart count(totalTime) as "Num Deals" over totalTime span=100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Addendum: There's a function called makecontinuous that is supposed to do this, but I believe it actually just adds one to the bucket, which is somewhat misleading to a wider audience: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Makecontinuous"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Makecontinuous&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2011 18:07:42 GMT</pubDate>
    <dc:creator>ytamura</dc:creator>
    <dc:date>2011-11-14T18:07:42Z</dc:date>
    <item>
      <title>How can I include zero/empty count buckets in tables/charts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-include-zero-empty-count-buckets-in-tables-charts/m-p/109007#M28433</link>
      <description>&lt;P&gt;I am trying to create a histogram/distribution graph of deal durations, for comparison between where the user is accessing a website from.&lt;/P&gt;

&lt;P&gt;This search works more or less OK:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;"search that returns reults with deal durations in field totalTime" | chart count(_raw) as "Num Deals" by totalTime span=100&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;totalTime is returned as an integer 0-3000, meaning ideally I would have 30 buckets. My problem is that some locations are very slow, and there are no durations below 800. The chart command does not create any rows for durations lower than 800 (ie. 0-100, 100-200, 200-300 etc up to 700-800 are all missing). This makes direct comparisons between graphs difficult, as they do not show the same scale.&lt;/P&gt;

&lt;P&gt;Is there any way to force Splunk to create empty buckets (starting from zero) for charting as per my requirement?&lt;/P&gt;

&lt;P&gt;Splunk version 4.1.5.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;

&lt;P&gt;Glenn&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2011 17:29:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-include-zero-empty-count-buckets-in-tables-charts/m-p/109007#M28433</guid>
      <dc:creator>Glenn</dc:creator>
      <dc:date>2011-11-14T17:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I include zero/empty count buckets in tables/charts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-include-zero-empty-count-buckets-in-tables-charts/m-p/109008#M28434</link>
      <description>&lt;P&gt;I'm assuming you are bucketing in terms of totalTime.  What worked for me is the following search structure:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search | chart count(totalTime) as "Num Deals" over totalTime span=100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Addendum: There's a function called makecontinuous that is supposed to do this, but I believe it actually just adds one to the bucket, which is somewhat misleading to a wider audience: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Makecontinuous"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Makecontinuous&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2011 18:07:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-include-zero-empty-count-buckets-in-tables-charts/m-p/109008#M28434</guid>
      <dc:creator>ytamura</dc:creator>
      <dc:date>2011-11-14T18:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I include zero/empty count buckets in tables/charts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-include-zero-empty-count-buckets-in-tables-charts/m-p/109009#M28435</link>
      <description>&lt;P&gt;Hi, I don't think this works. It gives me the same kind of picture as before - empty buckets before the first one (ie. 0-100, 100-200 if first result is in 200-300 bucket) are not created or charted.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2011 09:44:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-include-zero-empty-count-buckets-in-tables-charts/m-p/109009#M28435</guid>
      <dc:creator>Glenn</dc:creator>
      <dc:date>2011-11-15T09:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I include zero/empty count buckets in tables/charts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-include-zero-empty-count-buckets-in-tables-charts/m-p/109010#M28436</link>
      <description>&lt;P&gt;Strange, tried again on a simple search and it works for me.  I'm on 4.2 by the way. In fact, I did something like your search and I'm still getting 0 buckets displayed.&lt;/P&gt;

&lt;P&gt;The only way I'm not getting any 0 buckets is if I do:&lt;BR /&gt;
search | bucket X span=100 | chart count by X&lt;/P&gt;

&lt;P&gt;Perhaps this is a difference between Splunk versions...&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2011 18:07:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-include-zero-empty-count-buckets-in-tables-charts/m-p/109010#M28436</guid>
      <dc:creator>ytamura</dc:creator>
      <dc:date>2011-11-15T18:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I include zero/empty count buckets in tables/charts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-include-zero-empty-count-buckets-in-tables-charts/m-p/109011#M28437</link>
      <description>&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/118496/fill-in-0-for-timechart-with-missing-values"&gt;http://answers.splunk.com/answers/118496/fill-in-0-for-timechart-with-missing-values&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2014 18:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-include-zero-empty-count-buckets-in-tables-charts/m-p/109011#M28437</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2014-02-13T18:32:10Z</dc:date>
    </item>
  </channel>
</rss>

