Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #36723

Re: Query windows event log with python

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <robey.lawrence@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'subject:python': 0.11; '...]': 0.16; 'log.': 0.16; 'subject:Query': 0.16; 'subject:log': 0.16; 'subject:windows': 0.16; 'tjg': 0.16; 'wrote:': 0.17; 'specify': 0.17; 'tim': 0.18; 'input': 0.18; 'windows': 0.19; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'command': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'looks': 0.26; 'wondering': 0.26; 'question': 0.27; 'run': 0.28; 'piece': 0.29; 'query': 0.30; 'code': 0.31; 'could': 0.32; 'received:google.com': 0.34; 'thanks': 0.34; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'wanted': 0.36; '12,': 0.36; 'subject:with': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'short': 0.39; 'where': 0.40; 'skip:" 10': 0.40; 'from:no real name:2**0': 0.60; 'email addr:gmail.com': 0.63; 'prompt': 0.78; '2013': 0.84
X-Received by 10.50.163.67 with SMTP id yg3mr1020497igb.12.1358056533560; Sat, 12 Jan 2013 21:55:33 -0800 (PST)
Newsgroups comp.lang.python
Date Sat, 12 Jan 2013 21:55:33 -0800 (PST)
In-Reply-To <mailman.440.1357983265.2939.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=101.175.59.75; posting-account=pywK3woAAABsqSQTkXIHXQ93GHubZTXl
References <8e37e86b-2f07-494e-a913-f7d2fb6ba9a4@googlegroups.com> <mailman.440.1357983265.2939.python-list@python.org>
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-IP 101.175.59.75
MIME-Version 1.0
Subject Re: Query windows event log with python
From robey.lawrence@gmail.com
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.460.1358056542.2939.python-list@python.org> (permalink)
Lines 36
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1358056542 news.xs4all.nl 6869 [2001:888:2000:d::a6]:49534
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:36723

Show key headers only | View raw


On Saturday, January 12, 2013 8:34:01 PM UTC+11, Tim Golden wrote:
> On 12/01/2013 06:09, email.address@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 results.
> 
> >
> 
> > I found this piece of code to start from,
> 
> 
> 
> [... snip ...]
> 
> 
> 
> Well it looks like you have everything you need. Was there a specific 
> 
> question you wanted to ask?
> 
> 
> 
> TJG

yes, I would like to run it in Command prompt and ask the user at the time what type and date of Event they would like to view. so i was wondering where in the code I could put something like "var=raw_input"

Thanks TJG

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Query windows event log with python robey.lawrence@gmail.com - 2013-01-11 22:09 -0800
  Re: Query windows event log with python alex23 <wuwei23@gmail.com> - 2013-01-12 00:34 -0800
  Re: Query windows event log with python Tim Golden <mail@timgolden.me.uk> - 2013-01-12 09:34 +0000
    Re: Query windows event log with python robey.lawrence@gmail.com - 2013-01-12 21:55 -0800
      Re: Query windows event log with python Tim Golden <mail@timgolden.me.uk> - 2013-01-14 09:07 +0000
    Re: Query windows event log with python robey.lawrence@gmail.com - 2013-01-12 21:55 -0800

csiph-web