<?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: How can I identify login and logoff times for users using Windows Security Event-IDs 4624 and 4634? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-identify-login-and-logoff-times-for-users-using/m-p/315574#M59053</link>
    <description>&lt;P&gt;Are you sure your not seeing multiple events for logintype3 or logintype4 which are network or service logons - its quite conceivable you would see lots of these during login (and use) as you system downloads profiles/maps drives etc.&lt;/P&gt;

&lt;P&gt;If you restrict your search to LoginType2 (interactive) you may have more concise results.&lt;BR /&gt;
I am not near Splunk at the moment, so this may not work off the hop, but this might get you closer.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;((EventCode=4624 (Logon_Type=2 OR login_Type=7 OR Login_Type=10)) OR (EventCode=4634 OR EventCode=4647) )|transaction user, host startswith="EventCode=4624"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;edited to include loging type7 (unlock) and 10 (remote desktop)&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2017 12:49:58 GMT</pubDate>
    <dc:creator>nickhills</dc:creator>
    <dc:date>2017-11-30T12:49:58Z</dc:date>
    <item>
      <title>How can I identify login and logoff times for users using Windows Security Event-IDs 4624 and 4634?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-identify-login-and-logoff-times-for-users-using/m-p/315572#M59051</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I want to identify the login and logouts for each user on a server.&lt;BR /&gt;
I use the event_id 4624 (logon) and 4634(logoff). the problem is that Windows generates multiple events for only one login/logoff.&lt;BR /&gt;
It seems that they share the same login_id. &lt;BR /&gt;
so I try something like:&lt;/P&gt;

&lt;P&gt;host="server a" user="allice" (EventCode=4624 OR EventCode=4624 ) &lt;/P&gt;

&lt;P&gt;now I need something like:&lt;/P&gt;

&lt;P&gt;| where login_id= login_id&lt;/P&gt;

&lt;P&gt;So that I get only 2 events for one login/logoff , but for all users and over time &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks for reading.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:02:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-identify-login-and-logoff-times-for-users-using/m-p/315572#M59051</guid>
      <dc:creator>Aufex</dc:creator>
      <dc:date>2020-09-29T17:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify login and logoff times for users using Windows Security Event-IDs 4624 and 4634?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-identify-login-and-logoff-times-for-users-using/m-p/315573#M59052</link>
      <description>&lt;P&gt;Hi @Aufex,&lt;/P&gt;

&lt;P&gt;Can you please try this? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    host="server a" user="allice" (EventCode=4624 OR EventCode=4634)  | dedup EventCode,user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;EDIT: If above query works then remove &lt;CODE&gt;user="allice"&lt;/CODE&gt; from above query so it will give you result for all users who login/logoff in &lt;CODE&gt;server a&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 12:45:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-identify-login-and-logoff-times-for-users-using/m-p/315573#M59052</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-11-30T12:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify login and logoff times for users using Windows Security Event-IDs 4624 and 4634?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-identify-login-and-logoff-times-for-users-using/m-p/315574#M59053</link>
      <description>&lt;P&gt;Are you sure your not seeing multiple events for logintype3 or logintype4 which are network or service logons - its quite conceivable you would see lots of these during login (and use) as you system downloads profiles/maps drives etc.&lt;/P&gt;

&lt;P&gt;If you restrict your search to LoginType2 (interactive) you may have more concise results.&lt;BR /&gt;
I am not near Splunk at the moment, so this may not work off the hop, but this might get you closer.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;((EventCode=4624 (Logon_Type=2 OR login_Type=7 OR Login_Type=10)) OR (EventCode=4634 OR EventCode=4647) )|transaction user, host startswith="EventCode=4624"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;edited to include loging type7 (unlock) and 10 (remote desktop)&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 12:49:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-identify-login-and-logoff-times-for-users-using/m-p/315574#M59053</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-11-30T12:49:58Z</dc:date>
    </item>
  </channel>
</rss>

