Query windows event log with python

2013-01-11 Thread robey . lawrence
Hi, I am looking to write a short program to query the windows event log. It needs to ask the user for input for The event type (Critical, Error, and Information), and the user needs to be able to specify a date since when they want to view results. I understand I will need the pywin32 extensi

Re: Query windows event log with python

2013-01-12 Thread alex23
On 12 Jan, 16:09, robey.lawre...@gmail.com wrote: > Hi, > > I am looking to write a short program to query the windows event log. > > It needs to ask the user for input for The event type (Critical, Error, and > Information), and the user needs to be able to specify a date since when they > want

Re: Query windows event log with python

2013-01-12 Thread Tim Golden
On 12/01/2013 06:09, robey.lawre...@gmail.com wrote: I am looking to write a short program to query the windows event log. It needs to ask the user for input for The event type (Critical, Error, and Information), and the user needs to be able to specify a date since when they want to view result

Re: Query windows event log with python

2013-01-12 Thread robey . lawrence
On Saturday, January 12, 2013 8:34:01 PM UTC+11, Tim Golden wrote: > On 12/01/2013 06:09, email.addr...@gmail.com wrote: > > > I am looking to write a short program to query the windows event > > > log. > > > > > > It needs to ask the user for input for The event type (Critical, > > > Error, a

Re: Query windows event log with python

2013-01-14 Thread Tim Golden
On 13/01/2013 05:55, robey.lawre...@gmail.com wrote: > On Saturday, January 12, 2013 8:34:01 PM UTC+11, Tim Golden wrote: >> On 12/01/2013 06:09, email.addr...@gmail.com wrote: >> >>> I am looking to write a short program to query the windows event >> >>> log. >> >>> >> >>> It needs to ask the

Re: Query windows event log with python

2019-03-29 Thread mons . sidus
lol cheeky as. server = 'x' # name of the target computer to get event logs source = 'x' # 'Application' # 'Security' hand = win32evtlog.OpenEventLog(server, source) flags = win32evtlog.EVENTLOG_BACKWARDS_READ | win32evtlog.EVENTLOG_SEQUENTIAL_READ total = win32evtlog.GetNumberOfEventLogRecords