Re: [python-win32] python-win32 Digest, Vol 76, Issue 13

2009-07-10 Thread Tony Cappellini
Message: 1 Date: Thu, 09 Jul 2009 22:20:56 +0100 From: Tim Golden m...@timgolden.me.uk Cc: python-win32@python.org Subject: Re: [python-win32] Python parser for Windows Event Logs Message-ID: 4a565f38.40...@timgolden.me.uk Content-Type: text/plain; charset=UTF-8; format=flowed

Re: [python-win32] Python parser for Windows Event Logs

2009-07-10 Thread Tim Roberts
Tony Cappellini wrote: Tim G's winsys wrapper will only read the live event logs. However, the native Win32 event log APIs can all read a saved .evt file just as well as a live log. You need to look into the win32evtlog module. win32evtlog.OpenBackupEventLog should let you access

Re: [python-win32] Python parser for Windows Event Logs

2009-07-10 Thread Tony Cappellini
Ok, I'm able to parse Event51 logs now. However, there seems to be a problem with the object returned from ReadEventLogs() GetNumberOfEvents() tells me there are 6 events. I can see all sixe events using the EventViewer in Control Panle, on Widnwos XP. However, the iterator returned from