<?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: Query to return events whose count is more than 3 times standard deviation,Find outlier events, using different time ranges for events and for stats in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Query-to-return-events-whose-count-is-more-than-3-times-standard/m-p/115459#M183864</link>
    <description>&lt;P&gt;Try this as the core of your search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="mySource" | stats count as myCount by myCol | eventstats stdev(myCount) as deviation | eval outlier=deviation*3 | where myCount &amp;gt; outlier
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 10 Jul 2015 15:13:18 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-07-10T15:13:18Z</dc:date>
    <item>
      <title>Query to return events whose count is more than 3 times standard deviation,Find outlier events, using different time ranges for events and for stats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-to-return-events-whose-count-is-more-than-3-times-standard/m-p/115458#M183863</link>
      <description>&lt;P&gt;I am trying to write a query which returns the values in &lt;CODE&gt;myCol&lt;/CODE&gt; which have a count greater than 3 times the standard deviation of the counts of values in &lt;CODE&gt;myCol&lt;/CODE&gt;. I tried the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="mySource" | stats count as myCount by myCol | append [ | search source="mySource" | stats count as myCount by myCol | stats stdev(myCount) as deviation ] | eval outlier=deviation*3 | stats values(myCount) as myCount, values(outlier) as outlier | where myCount &amp;gt; outlier | table myCol, myCount
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, no results are returned. How can I achieve this?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 15:02:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-to-return-events-whose-count-is-more-than-3-times-standard/m-p/115458#M183863</guid>
      <dc:creator>kalua</dc:creator>
      <dc:date>2015-07-10T15:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Query to return events whose count is more than 3 times standard deviation,Find outlier events, using different time ranges for events and for stats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-to-return-events-whose-count-is-more-than-3-times-standard/m-p/115459#M183864</link>
      <description>&lt;P&gt;Try this as the core of your search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="mySource" | stats count as myCount by myCol | eventstats stdev(myCount) as deviation | eval outlier=deviation*3 | where myCount &amp;gt; outlier
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jul 2015 15:13:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-to-return-events-whose-count-is-more-than-3-times-standard/m-p/115459#M183864</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-10T15:13:18Z</dc:date>
    </item>
  </channel>
</rss>

