<?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 Find the numerical outliers of the count for countries by day in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Find-the-numerical-outliers-of-the-count-for-countries-by-day/m-p/313396#M161856</link>
    <description>&lt;P&gt;I have the following which gives me the count of events that happen on separate days for each country.&lt;BR /&gt;
Column1: Date, Column2: Country and Column3: Count&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="sample" sourcetype ="access_combined_wcookie" clientip=* | iplocation clientip | convert timeformat="%Y-%m-%d" ctime(_time) AS date | stats count by date, Country
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For each Country, there are many days that occur that have events occurring on that day in total count.&lt;BR /&gt;
I want to find the dates that have an abnormally high amount of events for each country and these would be the outliers. &lt;/P&gt;

&lt;P&gt;How can I update my code to obtain this result?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Apr 2018 17:35:03 GMT</pubDate>
    <dc:creator>parwindertaank</dc:creator>
    <dc:date>2018-04-04T17:35:03Z</dc:date>
    <item>
      <title>Find the numerical outliers of the count for countries by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-the-numerical-outliers-of-the-count-for-countries-by-day/m-p/313396#M161856</link>
      <description>&lt;P&gt;I have the following which gives me the count of events that happen on separate days for each country.&lt;BR /&gt;
Column1: Date, Column2: Country and Column3: Count&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="sample" sourcetype ="access_combined_wcookie" clientip=* | iplocation clientip | convert timeformat="%Y-%m-%d" ctime(_time) AS date | stats count by date, Country
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For each Country, there are many days that occur that have events occurring on that day in total count.&lt;BR /&gt;
I want to find the dates that have an abnormally high amount of events for each country and these would be the outliers. &lt;/P&gt;

&lt;P&gt;How can I update my code to obtain this result?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 17:35:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-the-numerical-outliers-of-the-count-for-countries-by-day/m-p/313396#M161856</guid>
      <dc:creator>parwindertaank</dc:creator>
      <dc:date>2018-04-04T17:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Find the numerical outliers of the count for countries by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-the-numerical-outliers-of-the-count-for-countries-by-day/m-p/313397#M161857</link>
      <description>&lt;P&gt;The final solution will depend on how you want to define an outlier. One option would be to identify dates where the count of events was greater than 2 standard deviations above the average count for that country:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="sample" sourcetype ="access_combined_wcookie" clientip=* 
| iplocation clientip 
| convert timeformat="%Y-%m-%d" ctime(_time) AS date 
| stats count by date, Country 
| eventstats avg(count) as avg_count stdev(count) as stdev_count BY Country 
| where count&amp;gt;(avg_count+(2*stdev_count))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Apr 2018 17:42:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-the-numerical-outliers-of-the-count-for-countries-by-day/m-p/313397#M161857</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-04-04T17:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Find the numerical outliers of the count for countries by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-the-numerical-outliers-of-the-count-for-countries-by-day/m-p/313398#M161858</link>
      <description>&lt;P&gt;This is great thank you for your response. &lt;/P&gt;

&lt;P&gt;Can this action also be performed using the Machine Learning Toolkit for Numerical Outliers?&lt;BR /&gt;
Would the field to analyze be Count? And fields to split by Date and Country ?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 17:57:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-the-numerical-outliers-of-the-count-for-countries-by-day/m-p/313398#M161858</guid>
      <dc:creator>parwindertaank</dc:creator>
      <dc:date>2018-04-04T17:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Find the numerical outliers of the count for countries by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-the-numerical-outliers-of-the-count-for-countries-by-day/m-p/313399#M161859</link>
      <description>&lt;P&gt;Honestly, I've never used the Machine Learning Toolkit, so I can't tell you. If you want to get some answers to that, I'd recommend a new post with that specific question - otherwise, this conversation will likely get buried. &lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 18:01:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-the-numerical-outliers-of-the-count-for-countries-by-day/m-p/313399#M161859</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-04-04T18:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Find the numerical outliers of the count for countries by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-the-numerical-outliers-of-the-count-for-countries-by-day/m-p/313400#M161860</link>
      <description>&lt;P&gt;Hi, I came across same kind of problem. I used this solution as reference. However, When I executed above search everything is working fine but &lt;STRONG&gt;stdev(count)&lt;/STRONG&gt; is not working. It is only working when i remove &lt;STRONG&gt;BY country&lt;/STRONG&gt; from the search. How can i find Standard deviation for every country?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Chandana&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 19:03:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-the-numerical-outliers-of-the-count-for-countries-by-day/m-p/313400#M161860</guid>
      <dc:creator>chandana204</dc:creator>
      <dc:date>2018-05-01T19:03:49Z</dc:date>
    </item>
  </channel>
</rss>

