<?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 Unexplained:  Inconsistent/incomplete transaction eventcount when using maxevents with startswith in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Unexplained-Inconsistent-incomplete-transaction-eventcount-when/m-p/477976#M134111</link>
    <description>&lt;P&gt;I am getting an inconsistent number of events in a transaction, relative to the value specified for &lt;CODE&gt;maxevents=x&lt;/CODE&gt;: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| transaction ComputerName startswith=(EventCode=1100) maxevents=x&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Here are the eventcounts for each ComputerName where x=[10, 20, 30, 40], and maxevents undefined (i.e. not included in the SPL).:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;________________ x = 10_____20_____30_____40__Undefined&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;Computer1, txn A......3......3.....13.....23.....423&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;Computer1, txn B......5......5......5.....25.....705&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;Computer2.............5.....15.....15.....15.....855&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;Computer3.............6......6.....26.....26.....986&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;Computer4............10.....20.....30.....20.....100&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;Computer5, txn A......4.....14.....14.....14.....134&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;Computer5, txn B......6.....16.....16.....36.....836&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Using maxspan and not maxevents consistently produces the expected results (verified by comparing the transaction'ed events to the list of raw events).&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;QUESTIONS:&lt;/STRONG&gt;  All computer have more than ten events that could be included in a transaction that starts with &lt;CODE&gt;EventCode=1100&lt;/CODE&gt;, so why are there less than 10 events included in the transaction when &lt;CODE&gt;maxevents=10&lt;/CODE&gt;?  Shouldn't the transaction include (i.e. eventcount) up to then maxevent value when possible?&lt;/P&gt;

&lt;P&gt;Why does the eventcount jump up inconsistently when &lt;CODE&gt;maxevents&lt;/CODE&gt; is changed to different values?&lt;/P&gt;

&lt;P&gt;Why does the eventcount for Computer4  actually &lt;EM&gt;decrease&lt;/EM&gt; from 30 to 20 when maxevents is &lt;EM&gt;increased&lt;/EM&gt; to 40?&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2019 19:19:07 GMT</pubDate>
    <dc:creator>collinrice</dc:creator>
    <dc:date>2019-09-06T19:19:07Z</dc:date>
    <item>
      <title>Unexplained:  Inconsistent/incomplete transaction eventcount when using maxevents with startswith</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unexplained-Inconsistent-incomplete-transaction-eventcount-when/m-p/477976#M134111</link>
      <description>&lt;P&gt;I am getting an inconsistent number of events in a transaction, relative to the value specified for &lt;CODE&gt;maxevents=x&lt;/CODE&gt;: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| transaction ComputerName startswith=(EventCode=1100) maxevents=x&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Here are the eventcounts for each ComputerName where x=[10, 20, 30, 40], and maxevents undefined (i.e. not included in the SPL).:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;________________ x = 10_____20_____30_____40__Undefined&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;Computer1, txn A......3......3.....13.....23.....423&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;Computer1, txn B......5......5......5.....25.....705&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;Computer2.............5.....15.....15.....15.....855&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;Computer3.............6......6.....26.....26.....986&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;Computer4............10.....20.....30.....20.....100&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;Computer5, txn A......4.....14.....14.....14.....134&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;Computer5, txn B......6.....16.....16.....36.....836&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Using maxspan and not maxevents consistently produces the expected results (verified by comparing the transaction'ed events to the list of raw events).&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;QUESTIONS:&lt;/STRONG&gt;  All computer have more than ten events that could be included in a transaction that starts with &lt;CODE&gt;EventCode=1100&lt;/CODE&gt;, so why are there less than 10 events included in the transaction when &lt;CODE&gt;maxevents=10&lt;/CODE&gt;?  Shouldn't the transaction include (i.e. eventcount) up to then maxevent value when possible?&lt;/P&gt;

&lt;P&gt;Why does the eventcount jump up inconsistently when &lt;CODE&gt;maxevents&lt;/CODE&gt; is changed to different values?&lt;/P&gt;

&lt;P&gt;Why does the eventcount for Computer4  actually &lt;EM&gt;decrease&lt;/EM&gt; from 30 to 20 when maxevents is &lt;EM&gt;increased&lt;/EM&gt; to 40?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 19:19:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unexplained-Inconsistent-incomplete-transaction-eventcount-when/m-p/477976#M134111</guid>
      <dc:creator>collinrice</dc:creator>
      <dc:date>2019-09-06T19:19:07Z</dc:date>
    </item>
  </channel>
</rss>

