<?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 get sum for unique field values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-for-unique-field-values/m-p/196808#M56814</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I saw that there is dc so we can get the distinct count but what if I want to get the sum for unique field values? I have tried something like this but it is missing some values. Any suggestions? &lt;/P&gt;

&lt;P&gt;base search | dedup field | stats sum(field) as sum&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jun 2014 00:57:04 GMT</pubDate>
    <dc:creator>xvxt006</dc:creator>
    <dc:date>2014-06-12T00:57:04Z</dc:date>
    <item>
      <title>How to get sum for unique field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-for-unique-field-values/m-p/196808#M56814</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I saw that there is dc so we can get the distinct count but what if I want to get the sum for unique field values? I have tried something like this but it is missing some values. Any suggestions? &lt;/P&gt;

&lt;P&gt;base search | dedup field | stats sum(field) as sum&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2014 00:57:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-for-unique-field-values/m-p/196808#M56814</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2014-06-12T00:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sum for unique field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-for-unique-field-values/m-p/196809#M56815</link>
      <description>&lt;P&gt;Is this what you mean?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search | stats sum(value) as sum by field
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Some example data would help, if that's not what you needed.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2014 04:37:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-for-unique-field-values/m-p/196809#M56815</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2014-06-12T04:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sum for unique field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-for-unique-field-values/m-p/196810#M56816</link>
      <description>&lt;P&gt;Hi Thanks for checking. I have figured out this.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2014 19:07:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-for-unique-field-values/m-p/196810#M56816</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2014-06-17T19:07:28Z</dc:date>
    </item>
  </channel>
</rss>

