Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


September 1999

NTLast v2.6


RSS
Subscribe to Windows IT Pro | See More Products / Software Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Stop manually digging through event logs

Reviewing event logs is one of the most important of the tasks that you need to perform regularly on your network. NT OBJECTives' NTLast v2.6 is a great security-event-log analysis tool that fits well in any Windows NT network environment. NTLast is a command-line tool (similar to the UNIX last command) that can search local and remote NT security event logs to display entries in an easy-to-read onscreen report. The product can open and review archived event logs and pipe output to a text file. To add to its functionality, NTLast can distinguish between local console logons and remote network logons and can even filter and display Microsoft Internet Information Server (IIS) logons.

Because NTLast is a command-line tool, it supports a variety of command-line switches, depending on what kinds of log entries you want to display. For example, with an -f command-line switch, NTLast displays all failed logon attempts that an NT system's security event log stores.

Table 1 lists the command-line switches that NTLast supports. (Please note that all NTLast switches are case-sensitive.) NTLast reports on last successful logons, last failed logons, last interactive logons, last remote logons, logons by username, total number of logons, and IIS logons. In addition, NTLast supports command-line switches that help format the output for your viewing preference. For example, NTLast supports a condensed output and a verbose output and can filter out usernames from reports.

Installation and Use
Installing NTLast couldn't be easier—I simply copied the tool's executable file to my directory of choice, and NTLast was ready for use. Using NTLast is also easy, but you must fulfill two prerequisites. First, you must enable auditing so that NT records events into the event log. Second, if you plan to monitor a remote NT system using NTLast, you'll need administrative access to that machine to access its event log files.

Prudent administrators will find many ways to make productive use of NTLast. For example, you can regularly poll logs for failed logon attempts using the -f command-line switch. During my testing of NTLast, I wanted to monitor three machines for failed logon attempts and have NTLast save the report to a text file and also email the report to my inbox. To accomplish this, I created a simple batch file with the necessary commands and used NT Scheduler to cause the batch file to run at regular intervals. My batch file looked like this:

NTLAST -f -r -n 50 -m \\NTBOX1 
   > FAILED.TXT
NTLAST -f -r -n 50 -m \\NTBOX2
   >> FAILED.TXT
NTLAST -f -r -n 50 -m \\NTBOX3 
   >> FAILED.TXT
BLAT FAILED.TXT -s "Failed Logon
   Report" -t mark@ntsecurity.net 
   -server mail.ntsecurity.net
   

The first three commands poll the systems (NTBOX1, NTBOX2, and NTBOX3) for the last 50 failed logon attempts; -f tells NTLast to get the failed logons, and -n 50 tells NTLast that I want the last 50 failed logons. The -m switch instructs the machine to poll, and the -r switch specifies a display of the failed remote logon attempts. >> FAILED.TXT tells NT to append the command-line output to the file named failed.txt. Note that the first command uses > FAILED.TXT instead of >> FAILED.TXT. Using one greater-than symbol instructs NT to overwrite the file or create a new file, whereas two greater-than symbols tell NT to append the output to the newly created file.

The last command, BLAT, is the program I use to send the file via email. Blat is a command-line SMTP mail-sending tool that you can download for free from WinSite at http://www.winsite.com/winnt/netutil/page2.html.

The emailed report that Screen 1 shows uses condensed output in an easy-to-read layout, and it clearly shows the information I wanted about failed logon attempts. Each line in the report shows the username, the system the user was trying to log on to, the system the user was using to originate the logon, and the date and time of the failed logon attempt.

My example only scratches the surface of the possibilities for using NTLast productively. I find the tool to be an excellent addition to my NT security toolkit, and at a price of $29.95, NTLast is one heck of a bargain. I highly recommend that you add this utility to your toolkit.

NTLast v2.6
Contact: NT OBJECTives * 503-317-8732
Web: http://www.ntobjectives.com
Price: $29.95
System Requirements: Windows NT 4.0 with Service Pack 3 or later, 16MB of RAM

End of Article



Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of November 24, 2008

An often irreverent look at some of the week's other news, including a Vista Capable dismissal request, Zune price reductions, Morrow musings, Novell and Microsoft sitting in a tree ... two years later, Yahoo!, IE 6 on Windows Mobile, and so much more ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

PsExec

This freeware utility lets you execute processes on a remote system and redirect output to the local system. ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events SQL Server 2008 – Can You Wait? | Philadelphia

SQL Server 2008 – Can You Wait? | Atlanta

SQL Server 2008 – Can You Wait? | Chicago

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing