<?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 Why does Splunk search result count diminishes during search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-search-result-count-diminishes-during-search/m-p/640385#M221908</link>
    <description>&lt;P&gt;Hey,&lt;BR /&gt;&lt;BR /&gt;When running a query the results found are diminishing over time. Pagination is not of incluence ( tried 10, 50, 100 ) and it seems to be somewhere in the index this behavior is triggered. Meaning, if i search all events for today the count goes up to a count of events which then stalls for about 10 seconds to then continue with the result count to then start diminishing.&lt;BR /&gt;&lt;BR /&gt;When setting the time to a few hours back this behavior also happens. Since the search takes quite long to hit this "point of return" i assume the two time frames overlap and the same events are causing this diminishing of results to happen.&lt;BR /&gt;&lt;BR /&gt;Suggesting there is something wrong in the index ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Br,&lt;BR /&gt;&lt;BR /&gt;JLT&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2023 21:31:03 GMT</pubDate>
    <dc:creator>JLTsx</dc:creator>
    <dc:date>2023-04-19T21:31:03Z</dc:date>
    <item>
      <title>Why does Splunk search result count diminishes during search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-search-result-count-diminishes-during-search/m-p/640385#M221908</link>
      <description>&lt;P&gt;Hey,&lt;BR /&gt;&lt;BR /&gt;When running a query the results found are diminishing over time. Pagination is not of incluence ( tried 10, 50, 100 ) and it seems to be somewhere in the index this behavior is triggered. Meaning, if i search all events for today the count goes up to a count of events which then stalls for about 10 seconds to then continue with the result count to then start diminishing.&lt;BR /&gt;&lt;BR /&gt;When setting the time to a few hours back this behavior also happens. Since the search takes quite long to hit this "point of return" i assume the two time frames overlap and the same events are causing this diminishing of results to happen.&lt;BR /&gt;&lt;BR /&gt;Suggesting there is something wrong in the index ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Br,&lt;BR /&gt;&lt;BR /&gt;JLT&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 21:31:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-search-result-count-diminishes-during-search/m-p/640385#M221908</guid>
      <dc:creator>JLTsx</dc:creator>
      <dc:date>2023-04-19T21:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search result count diminishes during search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-search-result-count-diminishes-during-search/m-p/640388#M221910</link>
      <description>&lt;P&gt;Please share the search causing the issue&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 17:27:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-search-result-count-diminishes-during-search/m-p/640388#M221910</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-04-18T17:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search result count diminishes during search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-search-result-count-diminishes-during-search/m-p/640392#M221914</link>
      <description>&lt;P&gt;You didn't even give us the search SPL.&amp;nbsp; I am sure that the problem is you are hitting limits but there is now way to help because you told us nothing useful.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 17:35:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-search-result-count-diminishes-during-search/m-p/640392#M221914</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-18T17:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk search result count diminishes during search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-search-result-count-diminishes-during-search/m-p/641147#M222126</link>
      <description>&lt;P&gt;Thanks for sharing. I'm not in the habit of sharing queries. This one in particular was written by a 3rd party so I'm not sure i can legally share it in whole.&lt;BR /&gt;&lt;BR /&gt;The mention of limits led me to test with 8 hour windows instead of 24 hours and this did result in queries which no longer failed to return the results without removing results.&lt;BR /&gt;&lt;BR /&gt;The query looks like this&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;index=ind | where (cidrmatch(....,src ) OR cidrmatch(...,src)) OR (cidrmatch(...,dest) OR cidrmatcht(...,dest)) AND src!="&amp;lt;IP&amp;gt;" | stats dc(dest) as dcounter, values(dest) as dip by src,dest_port&lt;BR /&gt;| where dcounter &amp;gt;= 500&lt;BR /&gt;| eval nowtime = strftime(now(),&lt;SPAN&gt;"%d/%b/%Y:%H:%M:%S")&lt;BR /&gt;| eval tip = mvindex(dip,0)&lt;BR /&gt;| eval alerting = "scan" + dcounter + "port" + dest_port&lt;BR /&gt;| table nowtime dip tip alerting&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;While writing alternates to this query it was found using long "| stats" does not matter too much but adding some keys such as user when use "... as &amp;lt;name&amp;gt; by &amp;lt;key1&amp;gt;,&amp;lt;key2&amp;gt;,&amp;lt;key&amp;gt;" does cause the same issue&lt;BR /&gt;&lt;BR /&gt;I've encountered this a few years ago but was not allowed to keep the notes on how to fix&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 14:59:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-search-result-count-diminishes-during-search/m-p/641147#M222126</guid>
      <dc:creator>JLTsx</dc:creator>
      <dc:date>2023-04-24T14:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk search result count diminishes during search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-search-result-count-diminishes-during-search/m-p/641150#M222127</link>
      <description>&lt;P&gt;You could run your search over shorter periods of time and save the results to a summary index. Then you can search the summary index over a number of sets of results and combine them as if they were run over the original index for the whole time.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 15:07:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-search-result-count-diminishes-during-search/m-p/641150#M222127</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-04-24T15:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk search result count diminishes during search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-search-result-count-diminishes-during-search/m-p/641162#M222132</link>
      <description>&lt;P&gt;Thanks, i fixed it by not using eval, just stats and a where clauses, no limits are hit now. The query also appears to run (much?) faster.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 16:45:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-search-result-count-diminishes-during-search/m-p/641162#M222132</guid>
      <dc:creator>JLTsx</dc:creator>
      <dc:date>2023-04-24T16:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk search result count diminishes during search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-search-result-count-diminishes-during-search/m-p/658152#M227348</link>
      <description>&lt;P&gt;this issue was worked around by rewriting the query&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 15:09:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-search-result-count-diminishes-during-search/m-p/658152#M227348</guid>
      <dc:creator>JLTsx</dc:creator>
      <dc:date>2023-09-20T15:09:02Z</dc:date>
    </item>
  </channel>
</rss>

