Search log for string and display hourly/daily report

Michael Torrie torriem at gmail.com
Wed Jan 23 17:12:30 EST 2013


On 01/23/2013 12:05 PM, spek06 at 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/



More information about the Python-list mailing list