in reply to Binary Search Timestamps
Much better then to put these log files in a database and perform standard SQL queries on it.
You will only have to enter each line of the log file once into the database, nicely split into its various fields. It won't be terribly difficult to automate that. Then you can have all these statistics updated just by running your SQL queries, which will be much faster than re-reading the log file again and again.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog: Imperial Deltronics
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Binary Search Timestamps
by Paraxial (Novice) on Jul 16, 2014 at 15:29 UTC | |
by Your Mother (Archbishop) on Jul 16, 2014 at 20:56 UTC | |
by CountZero (Bishop) on Jul 17, 2014 at 16:17 UTC |