<?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: Counting aggregated data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Counting-aggregated-data/m-p/30993#M6363</link>
    <description>&lt;P&gt;Assuming you follow our docs online and get the data into Splunk with fields for Customer_ID and Withdrawal you would have a search that looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; | stats sum(Withdrawal) as Total by Customer_ID | sort -Total | head 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will give you the totals for each customer, sort it in Descending order and take the first 10 results based on the sort order.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Nov 2012 17:48:17 GMT</pubDate>
    <dc:creator>sdaniels</dc:creator>
    <dc:date>2012-11-12T17:48:17Z</dc:date>
    <item>
      <title>Counting aggregated data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-aggregated-data/m-p/30992#M6362</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;We have some BI data from the finance department that we need to import and process monthly in Splunk from a csv file that contains several columns but the most important in this scenario are:&lt;/P&gt;

&lt;P&gt;Customer_ID&lt;BR /&gt;
Withdrawal&lt;/P&gt;

&lt;P&gt;Both of these columns have numerical values only. What I am trying to achieve is to get the top 10 customer IDs who withdrew the largest amount of money. To get to this point I need to find every instance of every customer in the month and combine the value in the "Withdrawal" column for that customer, and then display the top 10 customers.&lt;/P&gt;

&lt;P&gt;I have no idea where to begin...&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;Ken&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2012 17:04:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-aggregated-data/m-p/30992#M6362</guid>
      <dc:creator>kengilmour</dc:creator>
      <dc:date>2012-11-12T17:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Counting aggregated data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-aggregated-data/m-p/30993#M6363</link>
      <description>&lt;P&gt;Assuming you follow our docs online and get the data into Splunk with fields for Customer_ID and Withdrawal you would have a search that looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; | stats sum(Withdrawal) as Total by Customer_ID | sort -Total | head 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will give you the totals for each customer, sort it in Descending order and take the first 10 results based on the sort order.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2012 17:48:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-aggregated-data/m-p/30993#M6363</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-11-12T17:48:17Z</dc:date>
    </item>
  </channel>
</rss>

