<?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: Bucket/Group results in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Bucket-Group-results/m-p/80955#M2888</link>
    <description>&lt;P&gt;yep&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index="abc_prod_apache_access" ST=200 NOT (host="abc-xxx01.xyz.prod") | stats avg(US) as AverageResponseTime by host | bucket AverageResponseTime span=100&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Bucket"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Bucket&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;UPDATE---------------------------&lt;/P&gt;

&lt;P&gt;well,  if the US field is a number of milliseconds already then the bucket span is correct.  If the US field is a number of seconds then you'll want to use span="0.1" instead.   &lt;/P&gt;

&lt;P&gt;As for the overall report, this does pretty much what you asked for.    Granted you'll probably want to end up with a &lt;CODE&gt;| sort AverageResponseTime&lt;/CODE&gt; on the end.  &lt;/P&gt;

&lt;P&gt;With that search you'll end up with a table where each row is a host, and the AverageResponseTime field will be things like "0.2-0.3",  "0.3-0.4".    &lt;/P&gt;

&lt;P&gt;As a slightly different report,  you might be interested in this report which is nicely chartable as a split-by column chart,  where the bucketed response time intervals are on the x-axis and it's a frequency chart split by host...  &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index="abc_prod_apache_access" ST=200 NOT (host="abc-xxx01.xyz.prod") | bucket AverageResponseTime span="100" | chart count over AverageResponseTime by host&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2011 18:43:57 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2011-09-23T18:43:57Z</dc:date>
    <item>
      <title>Bucket/Group results</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Bucket-Group-results/m-p/80954#M2887</link>
      <description>&lt;P&gt;index="abc_prod_apache_access" ST=200 NOT (host="abc-xxx01.xyz.prod") | stats avg(US) as AverageResponseTime by host&lt;/P&gt;

&lt;P&gt;Is there a way to bucket AverageResponseTime above in buckets of 100ms?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:54:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Bucket-Group-results/m-p/80954#M2887</guid>
      <dc:creator>gogetsplunk</dc:creator>
      <dc:date>2020-09-28T09:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Bucket/Group results</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Bucket-Group-results/m-p/80955#M2888</link>
      <description>&lt;P&gt;yep&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index="abc_prod_apache_access" ST=200 NOT (host="abc-xxx01.xyz.prod") | stats avg(US) as AverageResponseTime by host | bucket AverageResponseTime span=100&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Bucket"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Bucket&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;UPDATE---------------------------&lt;/P&gt;

&lt;P&gt;well,  if the US field is a number of milliseconds already then the bucket span is correct.  If the US field is a number of seconds then you'll want to use span="0.1" instead.   &lt;/P&gt;

&lt;P&gt;As for the overall report, this does pretty much what you asked for.    Granted you'll probably want to end up with a &lt;CODE&gt;| sort AverageResponseTime&lt;/CODE&gt; on the end.  &lt;/P&gt;

&lt;P&gt;With that search you'll end up with a table where each row is a host, and the AverageResponseTime field will be things like "0.2-0.3",  "0.3-0.4".    &lt;/P&gt;

&lt;P&gt;As a slightly different report,  you might be interested in this report which is nicely chartable as a split-by column chart,  where the bucketed response time intervals are on the x-axis and it's a frequency chart split by host...  &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index="abc_prod_apache_access" ST=200 NOT (host="abc-xxx01.xyz.prod") | bucket AverageResponseTime span="100" | chart count over AverageResponseTime by host&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2011 18:43:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Bucket-Group-results/m-p/80955#M2888</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-09-23T18:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Bucket/Group results</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Bucket-Group-results/m-p/80956#M2889</link>
      <description>&lt;P&gt;the below answer is incorrect. Here is the correct syntax:&lt;/P&gt;

&lt;P&gt;index="abc_prod_apache_access" ST=200 NOT (host="abc-xxx01.xyz.prod") | bucket _time span=100ms | stats avg(US)as AverageResponseTime by _time host&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:16:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Bucket-Group-results/m-p/80956#M2889</guid>
      <dc:creator>sf-mike</dc:creator>
      <dc:date>2020-09-28T12:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Bucket/Group results</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Bucket-Group-results/m-p/80957#M2890</link>
      <description>&lt;P&gt;Note that his question doesn't have to do with the _time field, but with the US field.   So bucketing by time isn't what was asked for.   I've updated my answer below and I still believe it's at least close to what they're looking for.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2012 22:46:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Bucket-Group-results/m-p/80957#M2890</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2012-08-16T22:46:27Z</dc:date>
    </item>
  </channel>
</rss>

