<?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: Problem using eventstats - not populating all fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80698#M20386</link>
    <description>&lt;P&gt;The thing is that the search still returns all my results - just many of them are not decorated with the data from the &lt;CODE&gt;eventstats&lt;/CODE&gt; command.&lt;/P&gt;</description>
    <pubDate>Sat, 23 Jun 2012 10:32:18 GMT</pubDate>
    <dc:creator>dbryan</dc:creator>
    <dc:date>2012-06-23T10:32:18Z</dc:date>
    <item>
      <title>Problem using eventstats - not populating all fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80691#M20379</link>
      <description>&lt;P&gt;I have the following search string (which I've obfuscated slightly):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=NetworkImpression
| fields User_ID IP Advertiser_ID Buy_ID Ad_ID Creative_ID Site_ID Page_ID
| eval key = User_ID + IP + Advertiser_ID + Buy_ID + Ad_ID + Creative_ID + Site_ID + Page_ID
| eventstats count by key
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I run it over about fifteen minutes of my data (~45,000 events), it behaves as expected. I get a &lt;CODE&gt;count&lt;/CODE&gt; field in 100% of them. See here:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://i.imgur.com/dmA01.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;However, anything much more and I start to see this:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://i.imgur.com/8Uufn.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;That was over half an hour - ~90,000 events - I see this:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://i.imgur.com/90Nlr.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;It continues to go down over a longer time frame.&lt;/P&gt;

&lt;P&gt;Can anyone give me an indication of what's going on here? There are no errors that I can see in the internal index, and the search inspector doesn't show anything that stands out to me.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2012 09:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80691#M20379</guid>
      <dc:creator>dbryan</dc:creator>
      <dc:date>2012-06-21T09:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using eventstats - not populating all fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80692#M20380</link>
      <description>&lt;P&gt;Does the "key" field exist in all the events?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2012 10:02:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80692#M20380</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-06-21T10:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using eventstats - not populating all fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80693#M20381</link>
      <description>&lt;P&gt;Yes, I meant to mention- it's always on 100% of events.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2012 10:22:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80693#M20381</guid>
      <dc:creator>dbryan</dc:creator>
      <dc:date>2012-06-21T10:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using eventstats - not populating all fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80694#M20382</link>
      <description>&lt;P&gt;What happens if you add the following to the end of your search:
     | search NOT count="*"&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2012 11:05:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80694#M20382</guid>
      <dc:creator>itinney</dc:creator>
      <dc:date>2012-06-21T11:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using eventstats - not populating all fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80695#M20383</link>
      <description>&lt;P&gt;I can see all the events missing the &lt;CODE&gt;count&lt;/CODE&gt; field, corresponding to how many are missing in the search in my question. I don't understand though - I can't find any limits options for &lt;CODE&gt;eventstats&lt;/CODE&gt;, and 100% of them have &lt;CODE&gt;count&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2012 01:36:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80695#M20383</guid>
      <dc:creator>dbryan</dc:creator>
      <dc:date>2012-06-22T01:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using eventstats - not populating all fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80696#M20384</link>
      <description>&lt;P&gt;There is a "configurable" limit of 50,000 search results returned when you Submit a search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[searchresults]
maxresultrows = 50000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Although the README says that you should not increase this figure.  Can you sample smaller time-ranges?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2012 09:13:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80696#M20384</guid>
      <dc:creator>itinney</dc:creator>
      <dc:date>2012-06-22T09:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using eventstats - not populating all fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80697#M20385</link>
      <description>&lt;P&gt;I would run the search more frequently (so less than 50K results) and save the results to a summary index if this is something you need to report often.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2012 09:16:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80697#M20385</guid>
      <dc:creator>itinney</dc:creator>
      <dc:date>2012-06-22T09:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using eventstats - not populating all fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80698#M20386</link>
      <description>&lt;P&gt;The thing is that the search still returns all my results - just many of them are not decorated with the data from the &lt;CODE&gt;eventstats&lt;/CODE&gt; command.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jun 2012 10:32:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80698#M20386</guid>
      <dc:creator>dbryan</dc:creator>
      <dc:date>2012-06-23T10:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using eventstats - not populating all fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80699#M20387</link>
      <description>&lt;P&gt;I just checked the docs, and it looks like this option only affects search commands that grow the result set, so hopefully this isn't it.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jun 2012 23:35:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80699#M20387</guid>
      <dc:creator>dbryan</dc:creator>
      <dc:date>2012-06-24T23:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using eventstats - not populating all fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80700#M20388</link>
      <description>&lt;P&gt;Now that I've done some more googling it looks like you might be right - there's a [stats] stanza documented for limits.conf which has a &lt;CODE&gt;maxresultrows&lt;/CODE&gt; option. It's still specified as only applying to searches that create additional rows, but if it's applying to my eventstats command that'd make sense why I stop seeing values after ~50,000 rows, as that's the universal default for maxresultrows.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2012 03:15:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-using-eventstats-not-populating-all-fields/m-p/80700#M20388</guid>
      <dc:creator>dbryan</dc:creator>
      <dc:date>2012-06-25T03:15:59Z</dc:date>
    </item>
  </channel>
</rss>

