Good morning, Monks!
I'm working with a rather large and ever changing text log file (think apache log). What I wish to do is generate statistics from it, such as requests per hour, https connections per hour, failed requests per hour, etc...
In order to speed up this process, rather than going throug the file in a linear fashion, I'd like to do a binary search till I reach logs starting from 1 hour ago, and then parse through each line to the end of the file.
I've been scratching my head with this one, can anyone help?
Thanks in advance.
In reply to Binary Search Timestamps by Paraxial
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |