<?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 Functionality of keepevicted not clear in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Functionality-of-keepevicted-not-clear/m-p/535461#M151333</link>
    <description>&lt;P&gt;I'm trying to understand the functionality of keepevicted. I've read several documentation about it but it's still not clear.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've made a search with transaction. Without keepevicted I get 54 events, with keepevicted 62. I've searched the difference and found 1 with let's say the text "abc". When I add "abc" to the search (in the first line with index=....) without keepevicted the event is returned. I don't understand why that is.&lt;/P&gt;&lt;P&gt;Can someone explain?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The search is something like this:&lt;/P&gt;&lt;P&gt;index=main sourcetype="src_type1" *abc* earliest=1610441880 latest=1610445533.859&lt;BR /&gt;| eval tmpId=if(len(bi_Id)&amp;gt;0,bi_Id,if(len(bo_id)&amp;gt;0,bo_id,be_Id))&lt;BR /&gt;| transaction maxspan=5s tmpId&lt;BR /&gt;| rex field=que1 "\{(?&amp;lt;cliber&amp;gt;.*)\}"&lt;BR /&gt;| rex field=que2 "\{(?&amp;lt;serber&amp;gt;.*)\}"&lt;BR /&gt;| stats count as Aantal by cliber&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jan 2021 10:19:10 GMT</pubDate>
    <dc:creator>rrovers</dc:creator>
    <dc:date>2021-01-12T10:19:10Z</dc:date>
    <item>
      <title>Functionality of keepevicted not clear</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Functionality-of-keepevicted-not-clear/m-p/535461#M151333</link>
      <description>&lt;P&gt;I'm trying to understand the functionality of keepevicted. I've read several documentation about it but it's still not clear.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've made a search with transaction. Without keepevicted I get 54 events, with keepevicted 62. I've searched the difference and found 1 with let's say the text "abc". When I add "abc" to the search (in the first line with index=....) without keepevicted the event is returned. I don't understand why that is.&lt;/P&gt;&lt;P&gt;Can someone explain?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The search is something like this:&lt;/P&gt;&lt;P&gt;index=main sourcetype="src_type1" *abc* earliest=1610441880 latest=1610445533.859&lt;BR /&gt;| eval tmpId=if(len(bi_Id)&amp;gt;0,bi_Id,if(len(bo_id)&amp;gt;0,bo_id,be_Id))&lt;BR /&gt;| transaction maxspan=5s tmpId&lt;BR /&gt;| rex field=que1 "\{(?&amp;lt;cliber&amp;gt;.*)\}"&lt;BR /&gt;| rex field=que2 "\{(?&amp;lt;serber&amp;gt;.*)\}"&lt;BR /&gt;| stats count as Aantal by cliber&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 10:19:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Functionality-of-keepevicted-not-clear/m-p/535461#M151333</guid>
      <dc:creator>rrovers</dc:creator>
      <dc:date>2021-01-12T10:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Functionality of keepevicted not clear</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Functionality-of-keepevicted-not-clear/m-p/535500#M151345</link>
      <description>&lt;P&gt;An "evicted" transaction is one which was not completed within the specified criteria.&amp;nbsp; In the example, if another event with the tmpId field was not found within 5 seconds of the previous such event then the current transaction is evicted.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 15:35:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Functionality-of-keepevicted-not-clear/m-p/535500#M151345</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-01-12T15:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Functionality of keepevicted not clear</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Functionality-of-keepevicted-not-clear/m-p/535665#M151403</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your answer but it's still not clear to me. I don't understand why the events with&amp;nbsp;&lt;SPAN&gt;*abc* are not returned when I don't have&amp;nbsp;*abc* in the first line.&amp;nbsp; When&amp;nbsp;*abc* is in the first line and the rest of the search is the same as the first search the events are returned.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 14:13:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Functionality-of-keepevicted-not-clear/m-p/535665#M151403</guid>
      <dc:creator>rrovers</dc:creator>
      <dc:date>2021-01-13T14:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Functionality of keepevicted not clear</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Functionality-of-keepevicted-not-clear/m-p/535668#M151404</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If my memory serves me correctly, transactions can only look at a finite number of events - if that number is breached then the transaction is cancelled.&lt;/P&gt;&lt;P&gt;Splunk docs&amp;nbsp; for transactions show:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;maxevents
    Syntax: maxevents=&amp;lt;int&amp;gt;
    Description: The maximum number of events in a transaction. If the value is negative this constraint is disabled.
    Default: 1000&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thus, when you add *ABC* to the start of the search, you are reducing the number of events that the transaction is searching through, compared to when you do not include *ABC*?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 14:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Functionality-of-keepevicted-not-clear/m-p/535668#M151404</guid>
      <dc:creator>sheamus69</dc:creator>
      <dc:date>2021-01-13T14:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Functionality of keepevicted not clear</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Functionality-of-keepevicted-not-clear/m-p/535771#M151438</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/172524"&gt;@sheamus69&lt;/a&gt;, thanks.&amp;nbsp;&lt;/SPAN&gt;I think you're right that this has to do with a limit. When I don't use keepevicted there is a limit of 4999 events. See also&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Is-there-a-limit-on-the-number-of-events-returned-from-the/m-p/110802" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Splunk-Search/Is-there-a-limit-on-the-number-of-events-returned-from-the/m-p/110802&lt;/A&gt; . With keepevicted there is no limit or it is much higher.&amp;nbsp;&lt;BR /&gt;The solution that works for me is to use keepevicted&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 07:15:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Functionality-of-keepevicted-not-clear/m-p/535771#M151438</guid>
      <dc:creator>rrovers</dc:creator>
      <dc:date>2021-01-14T07:15:55Z</dc:date>
    </item>
  </channel>
</rss>

