<?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 Display Standard Deviation (stdev) Percentage in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Display-Standard-Deviation-stdev-Percentage/m-p/67239#M16804</link>
    <description>&lt;P&gt;I'm looking to calculate the Standard Deviation percentage (stdev / mean) * 100&lt;BR /&gt;
but I'm wondering how do I craft the (eval) and then display all the fields (stdev, mean, and percentage)?&lt;/P&gt;

&lt;P&gt;index=generic&lt;BR /&gt;
| stats mean(bps_out) stdev(bps_out) by router &lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:48:25 GMT</pubDate>
    <dc:creator>albyva</dc:creator>
    <dc:date>2020-09-28T14:48:25Z</dc:date>
    <item>
      <title>Display Standard Deviation (stdev) Percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-Standard-Deviation-stdev-Percentage/m-p/67239#M16804</link>
      <description>&lt;P&gt;I'm looking to calculate the Standard Deviation percentage (stdev / mean) * 100&lt;BR /&gt;
but I'm wondering how do I craft the (eval) and then display all the fields (stdev, mean, and percentage)?&lt;/P&gt;

&lt;P&gt;index=generic&lt;BR /&gt;
| stats mean(bps_out) stdev(bps_out) by router &lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:48:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-Standard-Deviation-stdev-Percentage/m-p/67239#M16804</guid>
      <dc:creator>albyva</dc:creator>
      <dc:date>2020-09-28T14:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Display Standard Deviation (stdev) Percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-Standard-Deviation-stdev-Percentage/m-p/67240#M16805</link>
      <description>&lt;P&gt;Hi Albyva,&lt;/P&gt;

&lt;P&gt;Give the following a try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=generic
| stats mean(bps_out) AS mean, stdev(bps_out) AS stdev BY router
| eval stdev_percentage=(mean/stdev)*100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know how you go &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;RT&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;References&lt;/STRONG&gt;:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Splunk Docs: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Stats"&gt;stats&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Splunk Docs: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.4/SearchReference/CommonStatsFunctions"&gt;Functions for stats, chart, and timechart&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Splunk Docs: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Eval"&gt;eval&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 18 Sep 2013 23:12:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-Standard-Deviation-stdev-Percentage/m-p/67240#M16805</guid>
      <dc:creator>rturk</dc:creator>
      <dc:date>2013-09-18T23:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Display Standard Deviation (stdev) Percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-Standard-Deviation-stdev-Percentage/m-p/67241#M16806</link>
      <description>&lt;P&gt;Thanks. That worked like a charm.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 23:23:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-Standard-Deviation-stdev-Percentage/m-p/67241#M16806</guid>
      <dc:creator>albyva</dc:creator>
      <dc:date>2013-09-18T23:23:05Z</dc:date>
    </item>
  </channel>
</rss>

