in reply to apache log splitter
This code assumes that the logfile is in ascending order, which is not always the case at midnight on higher traffic websites. A line or two with the previous day's timestamp can still show up in the logfile during the first minute of the new day.
Hence, since this script creates a new logfile rather than appending to an existing one....thus one data line out of order in the logfile will destroy what was already written for that entire day.
|
|---|