Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Python reading System/Application Event logs in Windows

Reply
Thread Tools

Python reading System/Application Event logs in Windows

 
 
Ellinghaus, Lance
Guest
Posts: n/a
 
      02-18-2004
So.... Does anyone have a pointer on how to read the System and Application
Event logs in the Windows environment from within Python?

Thank you,
lance

Lance Ellinghaus
EDS - TWAI Operations Special Projects
Phone: 214-922-6458
Work Cell: 972-877-0409
Nextel Private ID: 142*52*5511
Personal Cell: 940-597-4755



 
Reply With Quote
 
 
 
 
David Bolen
Guest
Posts: n/a
 
      02-20-2004
"Ellinghaus, Lance" <(E-Mail Removed)> writes:

> So.... Does anyone have a pointer on how to read the System and Application
> Event logs in the Windows environment from within Python?


Use the win32evtlog module from the pywin32 (previously win32all)
package. There's an eventtLogDemo.py module in the demos directory
that provides some examples.

There's also the win32evtlogutil module which contains helper
functions such as FormatMessage for translating the event information
into an appropriate message (providing you have the message exe/DLL on
your system).

-- David
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
reading windows event logs EW Python 2 11-25-2009 11:43 PM
WinXP Home SP2 logs in then right away logs off Andrew Computer Support 15 10-19-2004 09:45 AM
Win XP SP2 Logs in then Logs out awallwork at sign gmail dot com Computer Support 2 10-16-2004 08:19 PM
Win XP SP2 Logs in then Logs out Andrew Computer Support 2 10-16-2004 04:27 PM
WinXP Home SP2 Logs on then Logs off awallwork at sign gmail dot com Computer Support 2 10-16-2004 02:28 AM



Advertisments