<?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: Reporting on NT User Logins? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-NT-User-Logins/m-p/96401#M20100</link>
    <description>&lt;P&gt;To Windows, a login is a login is a login.  There's nothing special about a user's "first" login of the day.  You may want to rephrase this as something more like "How can I write a search to find the first time a user logs in each day, assuming midnight starts a new day?"  (Or 5AM, or 6AM, or whatever)&lt;/P&gt;</description>
    <pubDate>Wed, 01 Dec 2010 01:19:55 GMT</pubDate>
    <dc:creator>dwaddle</dc:creator>
    <dc:date>2010-12-01T01:19:55Z</dc:date>
    <item>
      <title>Reporting on NT User Logins?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-NT-User-Logins/m-p/96400#M20099</link>
      <description>&lt;P&gt;I've been asked to monitor peoples NT login in the morning. As I look through the security logs on my domain controllers there are so many login events. Is there a specific event that a user has first logged into the network?&lt;/P&gt;

&lt;P&gt;Suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2010 23:27:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-NT-User-Logins/m-p/96400#M20099</guid>
      <dc:creator>strueblood</dc:creator>
      <dc:date>2010-11-30T23:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting on NT User Logins?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-NT-User-Logins/m-p/96401#M20100</link>
      <description>&lt;P&gt;To Windows, a login is a login is a login.  There's nothing special about a user's "first" login of the day.  You may want to rephrase this as something more like "How can I write a search to find the first time a user logs in each day, assuming midnight starts a new day?"  (Or 5AM, or 6AM, or whatever)&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2010 01:19:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-NT-User-Logins/m-p/96401#M20100</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2010-12-01T01:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting on NT User Logins?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-NT-User-Logins/m-p/96402#M20101</link>
      <description>&lt;P&gt;Unfortunately, doing this on Windows is not quite as straightforward as one might expect. &lt;/P&gt;

&lt;P&gt;If all you care about is the first time a user hit the network, then use Splunk's search language to just isolate the first occurrence. Most of the time, you'll want Event &lt;B&gt;4624 or 528&lt;/B&gt;, depending on your Windows version. The general form would be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="windows-snare" Success EventCode=4624 NOT user="*$"
| eval logonTime=_time
| bucket _time span=1d
| stats min(logonTime) as logonTime by user, _time
| convert ctime(logonTime)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;bucket&lt;/CODE&gt; command, and the inclusion of &lt;CODE&gt;_time&lt;/CODE&gt; in the &lt;CODE&gt;stats&lt;/CODE&gt; command, are optional but will break it out separately for each day.&lt;/P&gt;

&lt;P&gt;Similarly, if you just want the first event for a user for a given day:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="windows-snare" Success EventCode=4624 NOT user="*$"
| sort _time
| dedup user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It's important to understand that these events do not necessarily indicate a user logging in by typing their credentials -- &lt;B&gt;almost any network activity can generate this event&lt;/B&gt;.&lt;/P&gt;

&lt;P&gt;If you want to track when a user actually entered their name and password, and not just when they hit a network share or other resource, you need to look mainly for &lt;B&gt;Logon Type 2, 7, 10, or 11&lt;/B&gt;. These correspond to Interactive Logon, Screen Unlock, Remote Desktop Logon, and workstations logins with Cached Credentials. Unfortunately, they will generally &lt;B&gt;&lt;I&gt;appear only on the workstation&lt;/I&gt;&lt;/B&gt; at which the event occurred, and not on a domain controller.  &lt;/P&gt;

&lt;P&gt;For newer windows versions, searching for Event &lt;B&gt;4776&lt;/B&gt; (Credential Validation) will tell you when a domain controller actually checked the password. But remember that it won't appear for logons using cached credentials.&lt;/P&gt;

&lt;P&gt;You may also want to take a look at Randy Franklin Smith's &lt;A href="http://www.ultimatewindowssecurity.com/securitylog/encyclopedia/Default.aspx" rel="nofollow"&gt;site&lt;/A&gt;, and at &lt;A href="http://www.eventid.net/" rel="nofollow"&gt;eventid.net&lt;/A&gt;. The first has a good quick reference sheet here:
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;A href="http://www.ultimatewindowssecurity.com/securitylog/quickref/Default.aspx" rel="nofollow"&gt;http://www.ultimatewindowssecurity.com/securitylog/quickref/Default.aspx&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2010 03:09:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-NT-User-Logins/m-p/96402#M20101</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-12-01T03:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting on NT User Logins?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-NT-User-Logins/m-p/96403#M20102</link>
      <description>&lt;P&gt;Great answer. There is also an app on Splunkbase that provides EventID lookups and some easy links to eventid.net via splunk workflows: &lt;A href="http://splunkbase.splunk.com/apps/All/4.x/Add-On/app:Windows+Event+Codes+Lookup"&gt;http://splunkbase.splunk.com/apps/All/4.x/Add-On/app:Windows+Event+Codes+Lookup&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2010 03:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-NT-User-Logins/m-p/96403#M20102</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2010-12-01T03:59:43Z</dc:date>
    </item>
  </channel>
</rss>

