<?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: Issues with Sum(count) not showing a number, but total being correct. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Issues-with-Sum-count-not-showing-a-number-but-total-being/m-p/273035#M176778</link>
    <description>&lt;P&gt;&lt;CODE&gt;values&lt;/CODE&gt; has an implicit dedup. Since both counts are 1, its gets deduped. Try using &lt;CODE&gt;list&lt;/CODE&gt; instead.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=location |search LockedStatus=Locked |rename UserAccountEntry as User |stats count by Location User | stats list(User) as User list(count) as PerUser_count sum(count) as Total by Location | sort 10 -Total
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Sep 2016 13:28:21 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-09-09T13:28:21Z</dc:date>
    <item>
      <title>Issues with Sum(count) not showing a number, but total being correct.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issues-with-Sum-count-not-showing-a-number-but-total-being/m-p/273034#M176777</link>
      <description>&lt;P&gt;Have a search that gives data, for "yesterday" with specific criteria.  Trying to show results by Location, with counts by user per location.   I get the counts, but it sometimes does not show a count.&lt;/P&gt;

&lt;P&gt;Search is this. (data changed to protect the innocent &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  )&lt;/P&gt;

&lt;P&gt;index=location  |search LockedStatus=Locked |rename UserAccountEntry as User |stats count by Location User | stats values(User) as User values(count) as PerUser_count sum(count) as Total by Location | sort 10 -Total&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1824i43B33857571632ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;If you look at DEF, for the 1258452 there is not a 1 in the per user count.  Thoughts on why?  (this happens every day, though location or user is different).&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 12:32:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issues-with-Sum-count-not-showing-a-number-but-total-being/m-p/273034#M176777</guid>
      <dc:creator>bworrellZP</dc:creator>
      <dc:date>2016-09-09T12:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Sum(count) not showing a number, but total being correct.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issues-with-Sum-count-not-showing-a-number-but-total-being/m-p/273035#M176778</link>
      <description>&lt;P&gt;&lt;CODE&gt;values&lt;/CODE&gt; has an implicit dedup. Since both counts are 1, its gets deduped. Try using &lt;CODE&gt;list&lt;/CODE&gt; instead.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=location |search LockedStatus=Locked |rename UserAccountEntry as User |stats count by Location User | stats list(User) as User list(count) as PerUser_count sum(count) as Total by Location | sort 10 -Total
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Sep 2016 13:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issues-with-Sum-count-not-showing-a-number-but-total-being/m-p/273035#M176778</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-09T13:28:21Z</dc:date>
    </item>
  </channel>
</rss>

