Parse a log file

kaklis at gmail.com kaklis at gmail.com
Mon Jan 18 07:52:41 EST 2010


Hello to all!
I want to parse a log file with the following format for
example:
              TIMESTAMPE            Operation     FileName
Bytes
12/Jan/2010:16:04:59 +0200   EXISTS       sample3.3gp   37151
12/Jan/2010:16:04:59 +0200  EXISTS        sample3.3gp   37151
12/Jan/2010:16:04:59 +0200  EXISTS        sample3.3gp   37151
12/Jan/2010:16:04:59 +0200  EXISTS        sample3.3gp   37151
12/Jan/2010:16:04:59 +0200  EXISTS        sample3.3gp   37151
12/Jan/2010:16:05:05 +0200  DELETE      sample3.3gp   37151

How can i count the operations for a month(e.g total of 40 Operations,
30 exists, 10 delete?)
Any tips?

Thanks in advance
Antonis



More information about the Python-list mailing list