<?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: Transaction based alert trigger for EventCode=4740 showing previous 60 minutes events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Transaction-based-alert-trigger-for-EventCode-4740-showing/m-p/357602#M105771</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;

&lt;P&gt;Thanks for your quick response. One thing I was not aware of was the inclusion of the EventCode=4740 within the body of the EventCode=4771 event. I could not understand why I was seeing two EventCode's where I was expecting only 4770 as the most recent event but actually only seeing EventCode=4771&lt;/P&gt;

&lt;P&gt;I believe that your suggestion should work perfectly. &lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Feb 2018 11:16:48 GMT</pubDate>
    <dc:creator>soniquella</dc:creator>
    <dc:date>2018-02-06T11:16:48Z</dc:date>
    <item>
      <title>Transaction based alert trigger for EventCode=4740 showing previous 60 minutes events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-based-alert-trigger-for-EventCode-4740-showing/m-p/357600#M105769</link>
      <description>&lt;P&gt;Good morning.&lt;/P&gt;

&lt;P&gt;I am looking to generate an alert for when EventCode=4740 (User lockout) is shown in the event logs from my DC. I would like the report of triggered alert to show the previous 60 minutes (or maxevents=15) leading up to the EventCode=4740 lock out (trigger).&lt;/P&gt;

&lt;P&gt;Ultimately this would create a report we could send to the user to show that they are locked out and how the lock out was generated. &lt;/P&gt;

&lt;P&gt;index=myindex sourcetype="WinEventLog:Security" EventCode=4740 OR EventCode=4771 Account_Name=Username | transaction startswith=EventCode=4771 endswith=EventCode=4740 maxspan=1h&lt;/P&gt;

&lt;P&gt;This is my current attempt but it is not producing the information that I need in the format that I need.&lt;/P&gt;

&lt;P&gt;If anyone has any ideas then they would be gratefully appreciated.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Rob.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 10:50:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-based-alert-trigger-for-EventCode-4740-showing/m-p/357600#M105769</guid>
      <dc:creator>soniquella</dc:creator>
      <dc:date>2018-02-06T10:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction based alert trigger for EventCode=4740 showing previous 60 minutes events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-based-alert-trigger-for-EventCode-4740-showing/m-p/357601#M105770</link>
      <description>&lt;P&gt;can you please try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex sourcetype="WinEventLog:Security" EventCode=4740 OR EventCode=4771 Account_Name=Username 
| transaction startswith=eval(EventCode=4771) endswith=eval(EventCode=4740) maxspan=1h maxevents=15
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Feb 2018 11:05:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-based-alert-trigger-for-EventCode-4740-showing/m-p/357601#M105770</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-02-06T11:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction based alert trigger for EventCode=4740 showing previous 60 minutes events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-based-alert-trigger-for-EventCode-4740-showing/m-p/357602#M105771</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;

&lt;P&gt;Thanks for your quick response. One thing I was not aware of was the inclusion of the EventCode=4740 within the body of the EventCode=4771 event. I could not understand why I was seeing two EventCode's where I was expecting only 4770 as the most recent event but actually only seeing EventCode=4771&lt;/P&gt;

&lt;P&gt;I believe that your suggestion should work perfectly. &lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 11:16:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-based-alert-trigger-for-EventCode-4740-showing/m-p/357602#M105771</guid>
      <dc:creator>soniquella</dc:creator>
      <dc:date>2018-02-06T11:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction based alert trigger for EventCode=4740 showing previous 60 minutes events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-based-alert-trigger-for-EventCode-4740-showing/m-p/357603#M105772</link>
      <description>&lt;P&gt;I have converted to an answer. Upvote/accept if it is working for you!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 11:33:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-based-alert-trigger-for-EventCode-4740-showing/m-p/357603#M105772</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-02-06T11:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction based alert trigger for EventCode=4740 showing previous 60 minutes events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-based-alert-trigger-for-EventCode-4740-showing/m-p/357604#M105773</link>
      <description>&lt;P&gt;the most recent event will be at down as time is in ascending order. so &lt;CODE&gt;| transaction startswith=eval(EventCode=4771) endswith=eval(EventCode=4740) maxspan=1h maxevents=15&lt;/CODE&gt; will check within 1h the event that startswith 4771 and endswith 4740. maybe it is because of &lt;CODE&gt;maxevents=15&lt;/CODE&gt; if you remove that you should get events with 4740 as well. so basically  within 15 events if you get both of these then only it will show. try removing it or adjusting it.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 11:38:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-based-alert-trigger-for-EventCode-4740-showing/m-p/357604#M105773</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-02-06T11:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction based alert trigger for EventCode=4740 showing previous 60 minutes events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-based-alert-trigger-for-EventCode-4740-showing/m-p/357605#M105774</link>
      <description>&lt;P&gt;I appreciate your help.&lt;/P&gt;

&lt;P&gt;This was my finished search which seems to be getting the results:&lt;/P&gt;

&lt;P&gt;index=myindex sourcetype="WinEventLog:Security" EventCode=4740 OR EventCode=4771 | transaction Security_ID startswith=eval(EventCode=4740) maxspan=1h maxevents=10 unifyends=false&lt;/P&gt;

&lt;P&gt;Again, much appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 12:42:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-based-alert-trigger-for-EventCode-4740-showing/m-p/357605#M105774</guid>
      <dc:creator>soniquella</dc:creator>
      <dc:date>2018-02-06T12:42:35Z</dc:date>
    </item>
  </channel>
</rss>

