<?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 Count is incorrect in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Count-is-incorrect/m-p/488324#M136424</link>
    <description>&lt;P&gt;Trying to write a simple query in Splunk 7.0.  The idea is that it would count all the unique ip addresses based on a specific location.  So my query would look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk index="some index" sourcetype="some sourcetype" earliest=-24h
stats count(ip) by location
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After 100 rows, and (by my eyes) at least 12 unique addresses... it counts 5.  So instead of:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;location a ... 6&lt;/LI&gt;
&lt;LI&gt;location b ... 10&lt;/LI&gt;
&lt;LI&gt;location c ... 5&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I get&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;location x ... 5&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;What gives?&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jan 2020 02:18:46 GMT</pubDate>
    <dc:creator>TitanAE</dc:creator>
    <dc:date>2020-01-17T02:18:46Z</dc:date>
    <item>
      <title>Count is incorrect</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-is-incorrect/m-p/488324#M136424</link>
      <description>&lt;P&gt;Trying to write a simple query in Splunk 7.0.  The idea is that it would count all the unique ip addresses based on a specific location.  So my query would look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk index="some index" sourcetype="some sourcetype" earliest=-24h
stats count(ip) by location
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After 100 rows, and (by my eyes) at least 12 unique addresses... it counts 5.  So instead of:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;location a ... 6&lt;/LI&gt;
&lt;LI&gt;location b ... 10&lt;/LI&gt;
&lt;LI&gt;location c ... 5&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I get&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;location x ... 5&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;What gives?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 02:18:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-is-incorrect/m-p/488324#M136424</guid>
      <dc:creator>TitanAE</dc:creator>
      <dc:date>2020-01-17T02:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Count is incorrect</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-is-incorrect/m-p/488325#M136425</link>
      <description>&lt;P&gt;Okay... apparently verbose search really is slowing down my search.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 02:41:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-is-incorrect/m-p/488325#M136425</guid>
      <dc:creator>TitanAE</dc:creator>
      <dc:date>2020-01-17T02:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count is incorrect</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-is-incorrect/m-p/488326#M136426</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index="some index" sourcetype="some sourcetype" earliest=-24h
|stats count(ip) as ip_count dc(ip) as unique_ip_count by location
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hi, @TitanAE&lt;BR /&gt;
please provide your output details.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 03:05:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-is-incorrect/m-p/488326#M136426</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-17T03:05:23Z</dc:date>
    </item>
  </channel>
</rss>

