<?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: Bell curve from stats in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Bell-curve-from-stats/m-p/492793#M137442</link>
    <description>&lt;P&gt;Got it. Removed the bins, then did chart count span={}&lt;/P&gt;</description>
    <pubDate>Fri, 08 May 2020 23:59:47 GMT</pubDate>
    <dc:creator>seomaniv</dc:creator>
    <dc:date>2020-05-08T23:59:47Z</dc:date>
    <item>
      <title>Bell curve from stats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Bell-curve-from-stats/m-p/492790#M137439</link>
      <description>&lt;P&gt;I haven't seen much on creating a bell curve in Splunk. I've created a query that returns 30,000 events for 40+ associates over a month. Each event contains the number of minutes they've worked a specific activity. I then use stats to sum the time each associate works:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;stats sum(hoursWorked) by Associate
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but I want to use bins to create a bell curve to show the "normal" distribution of each associate's work. I have tried several ways with no success. I'm basically trying to show the number of associates that fall into each bin of number of hours worked.&lt;/P&gt;

&lt;P&gt;I want it to be something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;bin span=5 hoursWorked | 
stats count(sum(hoursWorked) by Associate) by hoursWorked
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but I realize I'm trying to count a table there. Help?&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 22:55:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Bell-curve-from-stats/m-p/492790#M137439</guid>
      <dc:creator>seomaniv</dc:creator>
      <dc:date>2020-05-08T22:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Bell curve from stats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Bell-curve-from-stats/m-p/492791#M137440</link>
      <description>&lt;P&gt;If you want to chart the distribution of monthly sums, you can do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;stats sum(hoursWorked) as hours by Associate
| bin span=5 hours
| stats count by hours
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That will give you a chart with the number of Associates per five-hour spans of monthly work.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 23:16:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Bell-curve-from-stats/m-p/492791#M137440</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2020-05-08T23:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Bell curve from stats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Bell-curve-from-stats/m-p/492792#M137441</link>
      <description>&lt;P&gt;Thank you ... this worked fairly well, but for one small problem. The bins are treated as strings, which means that, when graphed, it shows the bin "5-10" (hours) after the bin "25-30"&lt;/P&gt;

&lt;P&gt;And this is exacerbated if I make the bins for 1 hour spreads.&lt;/P&gt;

&lt;P&gt;Any idea how I can fix that? &lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 23:55:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Bell-curve-from-stats/m-p/492792#M137441</guid>
      <dc:creator>seomaniv</dc:creator>
      <dc:date>2020-05-08T23:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bell curve from stats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Bell-curve-from-stats/m-p/492793#M137442</link>
      <description>&lt;P&gt;Got it. Removed the bins, then did chart count span={}&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 23:59:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Bell-curve-from-stats/m-p/492793#M137442</guid>
      <dc:creator>seomaniv</dc:creator>
      <dc:date>2020-05-08T23:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Bell curve from stats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Bell-curve-from-stats/m-p/492794#M137443</link>
      <description>&lt;P&gt;You can add a &lt;CODE&gt;| sort hours&lt;/CODE&gt;, which should use a more natural sorting order than &lt;CODE&gt;stats&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2020 00:00:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Bell-curve-from-stats/m-p/492794#M137443</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2020-05-09T00:00:17Z</dc:date>
    </item>
  </channel>
</rss>

