Access logs are more or less sorted by time, but to aggregate connections by time (uniq -c
), you need to sort them a bit more. For a huge access log sort is very inefficient, because it buffers and sorts the whole file before printing out anything.
Do you know any option for sort or version of sort, that could sort only given ammount of lines at once, the print that block?
I have searched for the following keywords: "streaming sort", "block sort", "approximate sort". I have read the whole manual through, without use. Setting the buffer size (-S) did not influenced this.