Saving a copy of a remote NT event log
Pieter Claerhout
PClaerhout at CREO.BE
Wed Apr 12 06:30:01 EDT 2000
It does indeed, and it works like this:
import win32evtlog
evtLogSys = win32evtlog.OpenEventLog('pclaerhout', 'system')
win32evtlog.BackupEventLog(evtLogSys, 'c:\\system.evt')
win32evtlog.CloseEventLog(evtLogSys)
Kind regards,
Pieter
Pieter_Claerhout at creoscitex.com
-----Original Message-----
From: Mark Hammond [mailto:mhammond at skippinet.com.au]
Sent: Wednesday, April 12, 2000 2:16 AM
To: python-list at python.org
Subject: Re: Saving a copy of a remote NT event log
Im fairly sure the win32evtlog module will do this for you. Check the
docs.
Mark.
"Pieter Claerhout" <PClaerhout at CREO.BE> wrote in message
news:2B1262E83448D211AE4B00A0C9D61B03BA7295 at MSGEURO1...
> Hello,
>
> does anyone know if it's possible to save a copy of the NT-event log
> from a remote machine using Python? Normally, you have to do a
> save as from that machine, and then copy over the logfile, but I want
> to automate this using Python. Any ideas?
>
> Kind regards,
>
>
> Pieter
>
> [ Pieter Claerhout :: CreoScitex Response Centre :: Applications
support ]
> [ Pieter_Claerhout at creoscitex.com :: http://www.creoscitex.com/ ]
> [ CreoScitex Europe :: Excelsiorlaan 21 :: 1930 Zaventem ::
Belgium ]
>
>
--
http://www.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list