|
Popular sites have a problem: log files become
very large very quickly! It is necessary to set them aside in
some way when they become too large to be kept
in uncompressed form or kept on the hard drive at all.
Most sites solve this problem by periodically compressing and setting aside old log files. Wusage 6.0 can analyze compressed log files automatically. If Wusage is being asked to analyze every file in a directory, care must be taken to remove files which contain the same data wusage has already seen, but under a new name, such as a compressed verison of a log file wusage has already analyzed. Otherwise it is possible to get doubled results. "My server generates a new log file for each day, so I have dozens of log files already and more on the way. How can I analyze these logs with wusage?"
If you have many uncompressed log files, just use
the Wusage can analyze gzip-compressed log files directly without the need to "gunzip" them first. "I have many mirror sites, so I have a collection of log files that all contain entries from the same period in time. Can wusage cope with this?"
Just use the
The Unix
The special filename Important note: it is important to feed log files to cat in ascending order. An older log file should precede a newer one. "What if I have compressed data?" The following Unix pipeline will send several compressed log files to wusage:
And the following pipeline will send a combination of compressed and uncompressed log files to wusage:
Note that both cat and wusage are being fed information
from the output of the preceding program, using the
special filename Because the log information is arriving at "standard input" as a single stream of data, wusage cannot keep track of its position in each file. Take care not to present the same data more than once to Wusage 6.0 unless you are deliberately regenerating old reports. "What about non-Unix platforms?"
The MSDOS-related operating systems support the
the
"I ran wusage on an old log file, and now I have zero accesses for the last two months! What happened?" Wusage normally creates reports through the most recent complete day or week, and will not generate those reports again. You can override this behavior using the -b and -e command line options, which are used to force wusage to start re-generating reports at an earlier date, or to stop well before the present date. If you inadvertently produce empty reports for the most recent several weeks or months, just use the -b option to specify a date from which wusage should start re-generating those reports, and specify the more recent logfile as well using the -l option.
Copyright 1998, 1999, Boutell.Com,
Inc.
Boutell.Com, Inc - PO Box 63767, Philadelphia PA, 19147, USA
Follow us on Twitter | Contact Us Copyright 1994-2012 Boutell.Com, Inc. All Rights Reserved. |
