This topic provides information about how to set up logs to record events and other information for your HTTP Server with the IBM® Web Administration for i5/OS™ interface.
Your HTTP Server (powered by Apache) can generate a record of events commonly referred to as a Log. Logs can contain error messages, information on what is being accessed on your HTTP Server (powered by Apache), who is accessing your HTTP Server (powered by Apache), script logs, and FRCA logs.
The following topics discuss general log settings required for all logs, Access logs, Error logs, Script logs, FRCA logs, where to find the HTTP Server job log, and how to run a trace.
Before creating a specific log type, the general settings for all logs must be applied to your HTTP Server (powered by Apache) configuration. To configure the general settings for all logs, do the following:
The General Settings allow you to specify log entry time (local or Greenwich Mean Time), the log cycle, and maximum log file size.
After you complete the general settings for all logs, you can specify what type of logs you want to create.
Access logs contain a record of requests to the HTTP Server (powered by Apache). The access log itself can be configured to record specific information that you will want to review later. To configure an access log, do the following:
You can specify various types of information that can be logged in the Access log by specifying a customized log format. For more information how to specify a customized log format see Log Format.
Error Logs contain records of errors that are encountered by visitors to the server. You can specify what types of errors that are logged. To configure error logs, do the following:
You must first enable error logging to edit what errors will be logged. Once enabled, do the following:
The value defines how large your error log can be before old log entries are deleted.
From the Logging level list, select the level of information you want entered in the error log.
Script Logs contain errors generated by CGI programs running on the server. Generally you should only enable these logs when you are debugging programs on the server. To configure script logs, do the following:
You must first enable script logging to edit what script errors will be logged. Once enabled, do the following:
The value defines the size of the script error log.
The value defines the size of the script error log entry.
Fast Response Cache Accelerator ( FRCA) is an extension to the HTTP Server (powered by Apache) that enables caching and serving of data in Licensed Internal Code.
FRCA must be enabled before information is written to the FRCA log. Once enabled, do the following:
The value defines how long the FRCA log will be maintained before information is rolled over.
The value defines how large your FRCA log can be before old log entries are deleted.
For information on ASF Tomcat logs, see About Tomcat.
The HTTP Server job logs contain messages or exceptions. The HTTP Server (powered by Apache) job log is maintained in the QHTTPSVR subsystem, listed with a job name matching the name of your HTTP Server instance.
The HTTP Server (powered by Apache) trace allows you to view various levels of trace information related to a specific server. You will need to have a 5250 session on the iSeries™ your HTTP Server is currently running on.
For example STRTCPSVR *HTTP HTTPSVR(JKLSERVER '-vv').