in reply to Re: Working with a very large log file (parsing data out)
in thread Working with a very large log file (parsing data out)
As logs tend to be sorted already, it's likely you can avoid the sort as the only part that's likely to be a problem memory-wise
They're sorted by the time that they finish, but the time logged is when the request was made. ... so, a long running CGI or request to transfer a large file at the end of dayN might be after other lines for dayN+1
But you still don't have to sort the whole file, as you can get everything in order, then in a second pass you sum up the values that got split up
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Working with a very large log file (parsing data out)
by mbethke (Hermit) on Feb 21, 2013 at 00:02 UTC | |
by jhourcle (Prior) on Feb 21, 2013 at 14:03 UTC |