<?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: In Windows Security logs while using transaction why am I unable to get proper results? in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/In-Windows-Security-logs-while-using-transaction-why-am-I-unable/m-p/388987#M5813</link>
    <description>&lt;P&gt;If there were three or more consecutive events, they would all be added in.  You can possibly see this already if you check the field "eventcount".&lt;/P&gt;

&lt;P&gt;OH!  I see why.  Sorry, I wasn't paying close enough attention.&lt;/P&gt;

&lt;P&gt;In the initial search, you search ONLY for &lt;CODE&gt;(EventCode=5059 OR EventCode=4648)&lt;/CODE&gt;.  So that's all you get.  And if you then build a transaction starting with 5059 and ending with 4648... &lt;/P&gt;

&lt;P&gt;Try removing that bit.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype="WinEventLog:Security" host=PC*  
 | transaction maxspan=5s startswith=eval(EventCode=5059) endswith=eval(EventCode=4648) keeporphans=false host
 | table _time,host,EventCode,Account_Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if that's better.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;-Rich&lt;/P&gt;</description>
    <pubDate>Tue, 25 Sep 2018 14:19:52 GMT</pubDate>
    <dc:creator>Richfez</dc:creator>
    <dc:date>2018-09-25T14:19:52Z</dc:date>
    <item>
      <title>In Windows Security logs while using transaction why am I unable to get proper results?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/In-Windows-Security-logs-while-using-transaction-why-am-I-unable/m-p/388984#M5810</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; sourcetype="WinEventLog:Security" host=PC* (EventCode=5059 OR EventCode=4648) |  transaction maxspan=5s startswith=eval(EventCode=5059) endswith=eval(EventCode=4648) keeporphans=false | table _time,host,EventCode,Account_Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm trying to query for all computers and find the event code 5059 followed with an event 4648 within 5 seconds from the same computer. However, the search results return events from 2 different computers and matches them to the same transaction. How can I improve this search query?&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5819i8103A15CE5D5F703/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 12:42:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/In-Windows-Security-logs-while-using-transaction-why-am-I-unable/m-p/388984#M5810</guid>
      <dc:creator>zaynaly</dc:creator>
      <dc:date>2018-09-24T12:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: In Windows Security logs while using transaction why am I unable to get proper results?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/In-Windows-Security-logs-while-using-transaction-why-am-I-unable/m-p/388985#M5811</link>
      <description>&lt;P&gt;It may be the only thing you are actually missing is the field list to match on.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="WinEventLog:Security" host=PC* (EventCode=5059 OR EventCode=4648) 
| transaction maxspan=5s startswith=eval(EventCode=5059) endswith=eval(EventCode=4648) keeporphans=false host
| table _time,host,EventCode,Account_Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Add that &lt;CODE&gt;host&lt;/CODE&gt; to the end of the transaction says to only connect them on where host is the same.&lt;/P&gt;

&lt;P&gt;Happy Splunking!&lt;BR /&gt;
-Rich&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 13:08:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/In-Windows-Security-logs-while-using-transaction-why-am-I-unable/m-p/388985#M5811</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2018-09-24T13:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: In Windows Security logs while using transaction why am I unable to get proper results?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/In-Windows-Security-logs-while-using-transaction-why-am-I-unable/m-p/388986#M5812</link>
      <description>&lt;P&gt;Is there any way to add 3 or more consecutive events to the transacation? I see only start and end, meaning only 2 events?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 14:07:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/In-Windows-Security-logs-while-using-transaction-why-am-I-unable/m-p/388986#M5812</guid>
      <dc:creator>zaynaly</dc:creator>
      <dc:date>2018-09-25T14:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: In Windows Security logs while using transaction why am I unable to get proper results?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/In-Windows-Security-logs-while-using-transaction-why-am-I-unable/m-p/388987#M5813</link>
      <description>&lt;P&gt;If there were three or more consecutive events, they would all be added in.  You can possibly see this already if you check the field "eventcount".&lt;/P&gt;

&lt;P&gt;OH!  I see why.  Sorry, I wasn't paying close enough attention.&lt;/P&gt;

&lt;P&gt;In the initial search, you search ONLY for &lt;CODE&gt;(EventCode=5059 OR EventCode=4648)&lt;/CODE&gt;.  So that's all you get.  And if you then build a transaction starting with 5059 and ending with 4648... &lt;/P&gt;

&lt;P&gt;Try removing that bit.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype="WinEventLog:Security" host=PC*  
 | transaction maxspan=5s startswith=eval(EventCode=5059) endswith=eval(EventCode=4648) keeporphans=false host
 | table _time,host,EventCode,Account_Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if that's better.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;-Rich&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 14:19:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/In-Windows-Security-logs-while-using-transaction-why-am-I-unable/m-p/388987#M5813</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2018-09-25T14:19:52Z</dc:date>
    </item>
  </channel>
</rss>

