Running the Log Analyzer

The server-root/extras/log_anly directory
contains the log analysis tool that runs through the Server Manager user interface.
This log analyzer analyzes files in common log format only. The HTML document
in the log_anly directory that explains the tool’s
parameters. The server-root/extras/flex_anlg directory
contains the command-line log analyzer for the flexible log file format. However,
the Server Manager defaults to using the flexible log file reporting tool,
regardless of whether you’ve selected common or flexible log file format.

Use the log analyzer to generate statistics about your default server,
such as a summary of activity, most commonly accessed URLs and the server
is accessed most frequently. You can run the log analyzer from the Sun Java
System Web Server or the command line. The log analyzer cannot generate statistics
for virtual servers other than the default server. However, statistics can
be viewed for each virtual server as described in Viewing an Access Log File.

You must set the library path before attempting to run the flexanlg command line utility. The settings for various platforms are as
follows:

Solaris and Linux:

LD_LIBRARY_PATH=server_root/bin/https/lib:$LD_LIBRARY_PATH

AIX:

LIBPATH=server_root/bin/https/lib:$LIBPATH

HP-UX:

SHLIB_PATH=server_root/bin/https/lib:$SHLIB_PATH

Windows:

path=server_root\bin\https\bin;%path%

Note –

Before running the log analyzer, you should archive the server logs. For more information about archiving
server logs, see Archiving Log Files.

To run the log analyzer from the Server Manager, perform the follow
these steps:

To run the log analyzer from the Server Manager

From the Server
Manager, click the Logs tab.

Click Generate Report.

Fill in the fields.

Click OK.

The report appears in a new window.

For more information, see the Generate Report page in the online help.

To analyze access log files from the command
line, run the flexanlg tool, which is in the server-install/extras/flex_anlg directory.

To run the flexanlg, type the following command at
the command prompt: