<?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 How does this search from Splunk documentation work to calculate the percentage of outliers? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-does-this-search-from-Splunk-documentation-work-to-calculate/m-p/119005#M31872</link>
    <description>&lt;P&gt;I'd like to understand the mathematical meaning of the below search on documentation. Is this my understanding right that it calculates the outliers of 4.6% up or down based on the normal distribution?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access_* | eval URILen = len(useragent) | eventstats avg(URILen) as AvgURILen, stdev(URILen) as StdDevURILen| where URILen &amp;gt; AvgURILen+(2*StdDevURILen) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Use the stats command and functions: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/Search/Usethestatscommandandfunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/Search/Usethestatscommandandfunctions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If I want to get the 0.3% outliers, can I do this by just changing the condition like this? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | where URILen &amp;gt; AvgURILen+(3*StdDevURILen)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 31 Mar 2015 04:25:49 GMT</pubDate>
    <dc:creator>Shisa</dc:creator>
    <dc:date>2015-03-31T04:25:49Z</dc:date>
    <item>
      <title>How does this search from Splunk documentation work to calculate the percentage of outliers?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-does-this-search-from-Splunk-documentation-work-to-calculate/m-p/119005#M31872</link>
      <description>&lt;P&gt;I'd like to understand the mathematical meaning of the below search on documentation. Is this my understanding right that it calculates the outliers of 4.6% up or down based on the normal distribution?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access_* | eval URILen = len(useragent) | eventstats avg(URILen) as AvgURILen, stdev(URILen) as StdDevURILen| where URILen &amp;gt; AvgURILen+(2*StdDevURILen) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Use the stats command and functions: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/Search/Usethestatscommandandfunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/Search/Usethestatscommandandfunctions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If I want to get the 0.3% outliers, can I do this by just changing the condition like this? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | where URILen &amp;gt; AvgURILen+(3*StdDevURILen)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Mar 2015 04:25:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-does-this-search-from-Splunk-documentation-work-to-calculate/m-p/119005#M31872</guid>
      <dc:creator>Shisa</dc:creator>
      <dc:date>2015-03-31T04:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: How does this search from Splunk documentation work to calculate the percentage of outliers?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-does-this-search-from-Splunk-documentation-work-to-calculate/m-p/119006#M31873</link>
      <description>&lt;P&gt;Hi Shisa,&lt;BR /&gt;
This search returns events that macth  URILen's  average and  URILen's  sample standard deviation where URILen &amp;gt; AvgURILen+(2*StdDevURILen) .&lt;/P&gt;

&lt;P&gt;If i understand your problems, you want to return events where  &lt;STRONG&gt;URILen &amp;gt; AvgURILen+(3*StdDevURILen)&lt;/STRONG&gt; , this can be possible but, in your case, when i run  &lt;CODE&gt;sourcetype=access_* | eval URILen = len(useragent) | eventstats avg(URILen) as AvgURILen, stdev(URILen) as StdDevURILen| where URILen &amp;gt; AvgURILen+(3*StdDevURILen)| table AvgURILen StdDevURILen| table AvgURILen StdDevURILen&lt;/CODE&gt;  ,&lt;/P&gt;

&lt;P&gt;i get &lt;STRONG&gt;results not found&lt;/STRONG&gt; . This explain that  in the first part of query, that is &lt;CODE&gt;sourcetype=access_* | eval URILen = len(useragent) | eventstats avg(URILen) as AvgURILen, stdev(URILen) as StdDevURILen| table AvgURILen StdDevURILen URILen&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;which displays like follow, there is no values of  &lt;STRONG&gt;URILen&lt;/STRONG&gt; where we can have &lt;STRONG&gt;URILen &amp;gt; AvgURILen+(3*StdDevURILen)&lt;/STRONG&gt;. Thus, can't get results.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/295iEEF700602FE9D345/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2015 15:32:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-does-this-search-from-Splunk-documentation-work-to-calculate/m-p/119006#M31873</guid>
      <dc:creator>ngatchasandra</dc:creator>
      <dc:date>2015-03-31T15:32:51Z</dc:date>
    </item>
  </channel>
</rss>

