<?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: Plotting Normal Distribution using a column in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Plotting-Normal-Distribution-using-a-column/m-p/291719#M18525</link>
    <description>&lt;P&gt;This is a very broad question for a use case which will be strictly intrinsic to your data behavior and scenario.&lt;/P&gt;

&lt;P&gt;You should start with &lt;STRONG&gt;stdev()&lt;/STRONG&gt; and &lt;STRONG&gt;mean()&lt;/STRONG&gt; for historical data i.e. last 60 week or whichever historical data you have. Then you can calculate 2nd and 3rd Std Dev (Positive and Negative) based on the statistical calculation answered in the following post: &lt;A href="https://www.wyzant.com/resources/answers/27347/i_need_to_find_one_two_and_three_standards_deviations_above_the_mean_over_14_88_and_one_two_and_three_below_this_mean"&gt;https://www.wyzant.com/resources/answers/27347/i_need_to_find_one_two_and_three_standards_deviations_above_the_mean_over_14_88_and_one_two_and_three_below_this_mean&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I dont think there is currently a visualization to plot Normal Distribution so you can try with timechart command, but you can use Area Chart (&lt;A href="https://answers.splunk.com/answers/526582/response-time-distribution-chart-with-a-long-tail.html"&gt;https://answers.splunk.com/answers/526582/response-time-distribution-chart-with-a-long-tail.html&lt;/A&gt;). See if that fits the need.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2017 07:24:51 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-07-07T07:24:51Z</dc:date>
    <item>
      <title>Plotting Normal Distribution using a column</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Plotting-Normal-Distribution-using-a-column/m-p/291718#M18524</link>
      <description>&lt;P&gt;How do I derive Normal Distribution for a column (time_taken which is all integers) and then plot a bell curve from it.&lt;BR /&gt;
Can I get some examples?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 21:19:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Plotting-Normal-Distribution-using-a-column/m-p/291718#M18524</guid>
      <dc:creator>howardroark</dc:creator>
      <dc:date>2017-07-06T21:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting Normal Distribution using a column</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Plotting-Normal-Distribution-using-a-column/m-p/291719#M18525</link>
      <description>&lt;P&gt;This is a very broad question for a use case which will be strictly intrinsic to your data behavior and scenario.&lt;/P&gt;

&lt;P&gt;You should start with &lt;STRONG&gt;stdev()&lt;/STRONG&gt; and &lt;STRONG&gt;mean()&lt;/STRONG&gt; for historical data i.e. last 60 week or whichever historical data you have. Then you can calculate 2nd and 3rd Std Dev (Positive and Negative) based on the statistical calculation answered in the following post: &lt;A href="https://www.wyzant.com/resources/answers/27347/i_need_to_find_one_two_and_three_standards_deviations_above_the_mean_over_14_88_and_one_two_and_three_below_this_mean"&gt;https://www.wyzant.com/resources/answers/27347/i_need_to_find_one_two_and_three_standards_deviations_above_the_mean_over_14_88_and_one_two_and_three_below_this_mean&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I dont think there is currently a visualization to plot Normal Distribution so you can try with timechart command, but you can use Area Chart (&lt;A href="https://answers.splunk.com/answers/526582/response-time-distribution-chart-with-a-long-tail.html"&gt;https://answers.splunk.com/answers/526582/response-time-distribution-chart-with-a-long-tail.html&lt;/A&gt;). See if that fits the need.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 07:24:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Plotting-Normal-Distribution-using-a-column/m-p/291719#M18525</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-07T07:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting Normal Distribution using a column</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Plotting-Normal-Distribution-using-a-column/m-p/291720#M18526</link>
      <description>&lt;P&gt;Well, that depends on if it's a normal distribution or not!  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;But I think I know what you mean hear, so here's an example using LEN from my cheapie Firewall at home.  Now, because LEN is really all over the place but I know there's LOTS of DNS requests in the 40-75 byte range, when LEN is under 100 I would expect to see a bell-curve like chart.  (Or something near enough for demonstration purposes).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=fw LEN&amp;lt;100
| bin LEN 
| stats count by LEN
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which gives me &lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3159i3128D61E151F6FDE/image-size/large?v=v2&amp;amp;px=999" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Now for your needs you didn't provide an actual search to go off of, but you could try pretty much what I did  only replace &lt;CODE&gt;LEN&lt;/CODE&gt; with &lt;CODE&gt;time_taken&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your base search&amp;gt;
| bin bins=100 time_taken
| stats count by time_taken
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You'll notice I also bumped up the number of bins it can make - it won't MAKE 100 bins unless it finds a reason to, but I've told it that it COULD make up to 100 bins.&lt;/P&gt;

&lt;P&gt;Reference for &lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.0/SearchReference/Bin"&gt;bin in docs&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Happy Splunking!&lt;BR /&gt;
-Rich&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jul 2017 12:36:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Plotting-Normal-Distribution-using-a-column/m-p/291720#M18526</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2017-07-09T12:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting Normal Distribution using a column</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Plotting-Normal-Distribution-using-a-column/m-p/291721#M18527</link>
      <description>&lt;P&gt;howardroark,&lt;/P&gt;

&lt;P&gt;If this answered your question, could you please mark it as accepted?&lt;/P&gt;

&lt;P&gt;If it did not answer your question, let us know what else you need!&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Rich&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jul 2017 15:08:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Plotting-Normal-Distribution-using-a-column/m-p/291721#M18527</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2017-07-16T15:08:40Z</dc:date>
    </item>
  </channel>
</rss>

