Da gibt es extra ein Tool dazu, bekomme es aber derzeit noch nicht mit mehreren gz-Dateien zum laufen.
Folgendes war zu finden in der mitgelieferten Beschreibung zu awstats:
logresolvemerge.pl
logresolvemerge allows you to merge several log files into one output,
sorted on date. It also makes a fast reverse DNS lookup to replace
all IP addresses into host names in resulting log file.
logresolvemerge comes with ABSOLUTELY NO WARRANTY. It's a free software
distributed with a GNU General Public License (See COPYING.txt file).
logresolvemerge is part of AWStats but can be used alone as a log merger
or resolver before using any other log analyzer.
Usage:
logresolvemerge.pl [options] file
logresolvemerge.pl [options] file1 ... filen
logresolvemerge.pl [options] *.*
Options:
-dnslookup make a reverse DNS lookup on IP adresses
-dnscache=file make DNS lookup from cache file first before network lookup
-showsteps print on stderr benchmark information every 8192 lines
-addfilenum if used with several files, file number can be added in first
field of output file.
This runs logresolvemerge in command line to open one or several web
server log files to merge them (sorted on date) and/or to make a reverse
DNS lookup. The result log file is sent on standard output.
Note: logresolvemerge is not a 'sort' tool to sort one file. It's a
software able to output sorted log records (with a reverse DNS lookup
made if wanted) even if log records are shaked in several files.
However each of thoose files must be already independently sorted itself
(but that is the case in all web server log files).
logresolvemerge is particularly usefull when you want to merge large log
files in a fast process and with a low use of memory getting records in a
chronological order through a pipe (for use by third tool, like log analyzer).
WARNING: If log files are old MAC text files (lines ended with CR char), you
can't run this tool on Win or Unix platforms.
Now supports/detects:
Automatic detection of log format
Files can be .gz/.bz2 files if zcat/bzcat tools are available in PATH.
New versions and FAQ at
http://awstats.sourceforge.net
und im awstats forum:
Our ISP creates a separate log file for each day (access_log.nn) and files are renamed so the oldest is .31 and the newest is .1
Can I configure AWStats to read all these log files? I tried using Access_log.* but that didn't work. I also tried "cat access_log.* |
but AWStats only processes 1 days worth.
My current log analyzer software forces me to copy all log files into one then process it. This is becoming a major problem due to space limitations. If AWStats can't handle multiple log files, does anyone know of a good freeware log analyzer tool which does?
Thanks......brian
By: eldy ( Laurent Destailleur )
RE: Multiple Log Files
2003-10-31 17:05
You can use logresolvemerge.pl tool that was built to solve such problem.
In awstats config:
LogFile="logresolvemerge.pl file1 file2 file3"
The goal is to concat on the fly the several files.
This does not require extra disk space, nor extra memory.
so nun teste ich weiter
MichaS.