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.
In reply to Re: apache log splitter (bug)
by humanclock
in thread apache log splitter
by fuzzysteve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |