3 ms·
Sure! I've created a gist so you can see for yourself but the basic idea is as described. Read a chunk, find the first date in it and then decide if you want to
by aidos 2y ago
Sure! I've created a gist so you can see for yourself but the basic idea is as described. Read a chunk, find the first date in it and then decide if you want to read further forward or back in the file.
https://gist.github.com/aidos/5a6a3fa887f41f156b282d72e1b79f43 https://gist.github.com/aidos/5a6a3fa887f41f156b282d72e1b79f...
For anyone else, here's the awk for combining lines in the log files for making them greppable too: https://gist.github.com/aidos/44a9dfce3c16626e9e7834a83aed9188 https://gist.github.com/aidos/44a9dfce3c16626e9e7834a83aed91...