Appendix C. WEB LOG EXTRACTOR (WLE) OVERVIEW › C.2 WLE Utility Install Job › C.2.1 Executing the WLE Utility › C.2.1.2 Tailoring WLESCRPT
C.2.1.2 Tailoring WLESCRPT
The WLESCRPT member provides you with the ability to specify
date parameters and whether or not output is written to an
HFS file. If you would like to specify a specific date for
the HFSHELL, you can tailor this member to meet your site's
needs in:
prefix.MICS.PARMS(WLESCRPT)
WLESCRPT requires one parameter, the path and name of the
configuration file that was created. An example follows:
wleload.exe ./wleload.conf
This command executes the wleload program and directs it to
look for the configuration file in the same directory as the
wleload program is executing from, with the file name
wleload.conf. The user can name the configuration file
anything, as long as it conforms to UNIX System Services HFS
file naming conventions. In addition, the configuration file
does not have to be in the same directory as the executing
program. For example, if the user created a configuration
file called my.config and placed it in a different directory
called /u/users/command, the following command would be used:
wleload.exe /u/users/command/my.config
The HTTPD server creates log files with a suffix in the
format of Mmmddyyyy and "rolls" the log files at midnight.
For example, on June 6th, 2001 from midnight until 11:59:59
log records are written to selected log files with a suffix
of Jun062001. On June 7th, 2001 at midnight, the HTTPD
server would stop writing records to the Jun062001 suffixed
file. It would open and start writing to a new file with a
suffix of Jun072001. Therefore, the wleload extract program
should be run shortly after midnight each day. If wleload is
executed without a date parameter, it takes the current date,
subtracts one day from it, and tries to process log files
with a file suffix from the previous day. For normal
operations, wleload would be run without any date parameters.
If there is a need to process a previous day's log file
records, the -d date parameter can be used to specify which
log files you want to process. For example, it is June 12th,
2001 and you want to process data for log files with a suffix
of Jun052001, to do this follow the example below:
wleload.exe -d Jun052001 ./wleload.conf
The above example would cause wleload to execute and use the
wleload.conf configuration file found in the same directory
that the wleload program is running from. It would also use
a file suffix for the log files to process as Jun052001,
instead of Jun112001 (yesterday's date).
Finally, the execution time messages, diagnostic information,
and the configuration report are written to stdout. This
defaults to the display device. By using UNIX redirection,
you can cause the output to be written to an HFS file that
can be viewed later. Listed below is an example command to
use in order to write output to an HFS file:
wleload.exe ./wleload.conf >wleload.rpt
When wleload.exe is executed with the redirection symbol for
stdout with an >, the output is directed to the HFS file
specified following the redirection symbol.