Best way to read, and analyze a log file?

superflit at gmail.com superflit at gmail.com
Tue Aug 1 09:56:37 EDT 2006


Hi All,

I am reading a log file, and wondering what is the best way to read and
analize this.
I am think in two options:

1- Read the data and put all variables in a list
2- Read the data and put all the variables in dictionary?

the logs is in this format

xxxxxxxxxxxxxxxxxxxxxxxxxx
The separation is by byte size like

xxx three bytes for code x , xxxx bytes for hour, etc..
I have two main objectives.
Show all data to user.
Analyze the data: like total sum, average,etc..

All advice will be great appreciated.
And sorry about my bad english.




More information about the Python-list mailing list