<?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: Is it possible to divide results into buckets of varying sizes? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-divide-results-into-buckets-of-varying-sizes/m-p/20393#M3178</link>
    <description>&lt;P&gt;try "| chart count(_raw) by duration span=log2", does it do the trick? BTW, it should work with "| bucket duration span=log2" but I'm getting an exception, I'm sending a bug report&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jul 2010 22:09:32 GMT</pubDate>
    <dc:creator>hbazan</dc:creator>
    <dc:date>2010-07-26T22:09:32Z</dc:date>
    <item>
      <title>Is it possible to divide results into buckets of varying sizes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-divide-results-into-buckets-of-varying-sizes/m-p/20392#M3177</link>
      <description>&lt;P&gt;I'd like to be able to provide a chart that divides data into sets (buckets) of different sizes.&lt;/P&gt;

&lt;P&gt;The underlying search returns a large number of transactions, and we are interested in tracking those with abnormally long durations. To do this, we hoped to somehow be able to divide the durations into "human-useful" buckets like 0-20ms, 20-40ms, 40-60ms, 80-100ms, 100-200ms, 200ms+ (note these buckets are not all the same size, and one doesn't even have an upper extent).&lt;/P&gt;

&lt;P&gt;I have tried using a postprocessing command "| chart count(_raw) by duration span=20ms", but of course this this results in a large number of ranges up to the longest durations, most of which have nothing in them.&lt;/P&gt;

&lt;P&gt;Is there a builtin way to specify all of the bucket extents, or if not, use a combination of postprocessing commands to work this out?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2010 21:42:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-divide-results-into-buckets-of-varying-sizes/m-p/20392#M3177</guid>
      <dc:creator>Glenn</dc:creator>
      <dc:date>2010-07-26T21:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to divide results into buckets of varying sizes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-divide-results-into-buckets-of-varying-sizes/m-p/20393#M3178</link>
      <description>&lt;P&gt;try "| chart count(_raw) by duration span=log2", does it do the trick? BTW, it should work with "| bucket duration span=log2" but I'm getting an exception, I'm sending a bug report&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2010 22:09:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-divide-results-into-buckets-of-varying-sizes/m-p/20393#M3178</guid>
      <dc:creator>hbazan</dc:creator>
      <dc:date>2010-07-26T22:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to divide results into buckets of varying sizes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-divide-results-into-buckets-of-varying-sizes/m-p/20394#M3179</link>
      <description>&lt;P&gt;You can certainly compute your own bucket sizes using the eval command. For example, in your case you would search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval duration_group = case(duration &amp;lt; 20, "0-20 ms", duration &amp;lt; 40, "20-40 ms", duration &amp;lt; 60, "40-60 ms", duration &amp;lt; 80, "60-80 ms", duration &amp;lt; 100, "80-100 ms", duration &amp;lt; 200, "100-200 ms", 1==1, "&amp;gt;200 ms") | chart count by duration_group
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Jul 2010 23:14:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-divide-results-into-buckets-of-varying-sizes/m-p/20394#M3179</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-07-26T23:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to divide results into buckets of varying sizes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-divide-results-into-buckets-of-varying-sizes/m-p/20395#M3180</link>
      <description>&lt;P&gt;Using the rangemap command is an option as well:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rangemap field=duration "0-20ms"=0-20 "20-40ms"=20-40 "40-60ms"=40-60 "60-80ms"=60-80 "80-100ms"=80-100 "100-200ms"=100-200 default="200ms+" | stats count by range
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Jul 2010 00:14:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-divide-results-into-buckets-of-varying-sizes/m-p/20395#M3180</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2010-07-27T00:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to divide results into buckets of varying sizes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-divide-results-into-buckets-of-varying-sizes/m-p/20396#M3181</link>
      <description>&lt;P&gt;Here in this case difference inn range is 0-20,20-40,40-60 if it has different ranges like 0-40,40-60,60-90 &lt;BR /&gt;
How to write a query for that ?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 09:11:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-divide-results-into-buckets-of-varying-sizes/m-p/20396#M3181</guid>
      <dc:creator>srikarbaswa446</dc:creator>
      <dc:date>2017-09-14T09:11:35Z</dc:date>
    </item>
  </channel>
</rss>

