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


Groups > comp.lang.python > #37508

Re: Search log for string and display hourly/daily report

Date 2013-01-23 15:12 -0700
From Michael Torrie <torriem@gmail.com>
Subject Re: Search log for string and display hourly/daily report
References <4f952e77-258d-47ae-9d76-a86daa8acaa2@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.922.1358979158.2939.python-list@python.org> (permalink)

Show all headers | View raw


On 01/23/2013 12:05 PM, spek06@gmail.com wrote:
> I need to search a log file for a specific string (Successfully Sent)
> and report the number of instances in the last hour (from when
> executed) and total for the day so far (midnight till the time
> executed). Can anyone provide any examples of such a program or get
> me started?

Take a look at this very interesting presentation/document:

http://www.dabeaz.com/generators/

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


Thread

Search log for string and display hourly/daily report spek06@gmail.com - 2013-01-23 11:05 -0800
  Re: Search log for string and display hourly/daily report Tim Chase <python.list@tim.thechases.com> - 2013-01-23 14:08 -0600
  Re: Search log for string and display hourly/daily report John Gordon <gordon@panix.com> - 2013-01-23 21:25 +0000
    Re: Search log for string and display hourly/daily report spek06@gmail.com - 2013-01-23 16:57 -0800
  Re: Search log for string and display hourly/daily report Michael Torrie <torriem@gmail.com> - 2013-01-23 15:12 -0700

csiph-web