[svlug] interlacing log files, no joke
Aaron T Porter
atporter at primate.net
Mon Sep 16 17:48:01 PDT 2002
On Mon, Sep 16, 2002 at 07:33:31PM -0400, George Georgalis wrote:
> I guess that means converting all the dates to unix seconds, sort -n,
> and convert back so webalizer can read the standard apache date? Anyone
> done this before, trials, tribulations or scrips to share?
Why convert? Apache's date format is sort friendly. Check out the
--key=$1,$2 flag to sort. Depending on your logging format, choose the
column beginning with [ for $1 and ] for $2. The following worked on my
apache logs:
cat merged-log | sort --key=16,43 > sorted-log
More information about the svlug
mailing list