Python reading System/Application Event logs in Windows

E

Ellinghaus, Lance

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
 
D

David Bolen

Ellinghaus said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top