<?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 to categorize count results by country in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-categorize-count-results-by-country/m-p/360909#M169998</link>
    <description>&lt;P&gt;I have the following code from a web log, which gives me a table of the Time (by minute) the total for that minute, and the prediction and residual values.&lt;/P&gt;

&lt;P&gt;I want to separate this by country, not just time. &lt;BR /&gt;
ie, for each country and their times, what are the count values etc.&lt;/P&gt;

&lt;P&gt;How can I update my code, which doesnt split the total and time by country?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* sourcetype ="access_combined" clientip=* 
  | iplocation clientip
  | bin _time span=1m 
  | stats count AS perMin by _time, Country
  | timechart span=1m sum(perMin) AS Total
  | predict Total as prediction algorithm=LLP future_timespan=5 holdback=0 
  | where prediction!="" AND Total!="" 
  | eval residual = prediction - Total
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 24 Apr 2018 20:26:51 GMT</pubDate>
    <dc:creator>parwindertaank</dc:creator>
    <dc:date>2018-04-24T20:26:51Z</dc:date>
    <item>
      <title>How to categorize count results by country</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-categorize-count-results-by-country/m-p/360909#M169998</link>
      <description>&lt;P&gt;I have the following code from a web log, which gives me a table of the Time (by minute) the total for that minute, and the prediction and residual values.&lt;/P&gt;

&lt;P&gt;I want to separate this by country, not just time. &lt;BR /&gt;
ie, for each country and their times, what are the count values etc.&lt;/P&gt;

&lt;P&gt;How can I update my code, which doesnt split the total and time by country?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* sourcetype ="access_combined" clientip=* 
  | iplocation clientip
  | bin _time span=1m 
  | stats count AS perMin by _time, Country
  | timechart span=1m sum(perMin) AS Total
  | predict Total as prediction algorithm=LLP future_timespan=5 holdback=0 
  | where prediction!="" AND Total!="" 
  | eval residual = prediction - Total
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Apr 2018 20:26:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-categorize-count-results-by-country/m-p/360909#M169998</guid>
      <dc:creator>parwindertaank</dc:creator>
      <dc:date>2018-04-24T20:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to categorize count results by country</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-categorize-count-results-by-country/m-p/360910#M169999</link>
      <description>&lt;P&gt;Can you try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=* sourcetype ="access_combined" clientip=* 
       | iplocation clientip
       | bin _time span=1m 
       | stats count AS perMin by _time, Country
       | bin _time span=1m 
       | stats sum(perMin) AS Total by _time Country
       | predict Total as prediction algorithm=LLP future_timespan=5 holdback=0 
       | where prediction!="" AND Total!="" 
   | eval residual = prediction - Total
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Apr 2018 22:29:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-categorize-count-results-by-country/m-p/360910#M169999</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2018-04-24T22:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to categorize count results by country</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-categorize-count-results-by-country/m-p/360911#M170000</link>
      <description>&lt;P&gt;This works in splitting the results by Country!&lt;/P&gt;

&lt;P&gt;Im not sure however if the prediction for the Total is accurate anymore, because the values I get for each country by minute are way off from the actual values.&lt;/P&gt;

&lt;P&gt;How can I modify my predict command on Total use only the values for each country by minute for the prediction?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 14:05:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-categorize-count-results-by-country/m-p/360911#M170000</guid>
      <dc:creator>parwindertaank</dc:creator>
      <dc:date>2018-04-25T14:05:21Z</dc:date>
    </item>
  </channel>
</rss>

