<?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: Search WinEventLogs based on user as Variable in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-WinEventLogs-based-on-user-as-Variable/m-p/527433#M148882</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228299"&gt;@cam98&lt;/a&gt;&amp;nbsp;... all you need is a "Transaction" command (it will work on group of events, we can specify the start and end of the group)...&amp;nbsp;&lt;/P&gt;&lt;P&gt;the approximate query.. please edit the indexname, sourcetype name as per your design..&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=indexName sourcetype="WinEventLog:Security:VERIFY:this" EventCode=4740 OR EventCode=4771 
| transaction startswith=eval(EventCode=4771) endswith=eval(EventCode=4740) maxspan=7d maxevents=15&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~Happy Splunking | Best Regards | Sekar | PS - Karma points appreciated!&lt;/P&gt;</description>
    <pubDate>Sun, 01 Nov 2020 00:01:58 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2020-11-01T00:01:58Z</dc:date>
    <item>
      <title>Search WinEventLogs based on user as Variable</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-WinEventLogs-based-on-user-as-Variable/m-p/527415#M148879</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm new to Splunk &amp;amp; just getting used to it. I'm trying to search for Windows event logs relative to the "TargetUserName" field in the logs. I'm trying to run a search that shows me user accounts that have had two different event logs associated with it in a 7 day period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The search i'm looking to run is: if a user has had event code 4724 generated and then has event code 4740 occur within 7 days after code 4724 was seen. I was thinking i'd have to define the user name as variable that bring back the results if the event code conditions match (as described above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or could there be a better way of going about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated. Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 31 Oct 2020 13:39:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-WinEventLogs-based-on-user-as-Variable/m-p/527415#M148879</guid>
      <dc:creator>cam98</dc:creator>
      <dc:date>2020-10-31T13:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Search WinEventLogs based on user as Variable</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-WinEventLogs-based-on-user-as-Variable/m-p/527433#M148882</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228299"&gt;@cam98&lt;/a&gt;&amp;nbsp;... all you need is a "Transaction" command (it will work on group of events, we can specify the start and end of the group)...&amp;nbsp;&lt;/P&gt;&lt;P&gt;the approximate query.. please edit the indexname, sourcetype name as per your design..&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=indexName sourcetype="WinEventLog:Security:VERIFY:this" EventCode=4740 OR EventCode=4771 
| transaction startswith=eval(EventCode=4771) endswith=eval(EventCode=4740) maxspan=7d maxevents=15&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~Happy Splunking | Best Regards | Sekar | PS - Karma points appreciated!&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2020 00:01:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-WinEventLogs-based-on-user-as-Variable/m-p/527433#M148882</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-11-01T00:01:58Z</dc:date>
    </item>
  </channel>
</rss>

