To enable logging in the Apache server complete the following steps:
Procedure 6.9.1.1. Forwarding Apache server logs from System i
Use the Work With Links (WRKLNK) command to edit the
/www/(server-name)/conf/httpd_conf file.
Add a “LogCycle” directive in order to force the
Apache server to create one file:
LogCycle Off CustomLog logs/access_log combined
Without this directive the log files will have an appended time stamp and the syslog-ng application will not be able to process them.
Stop and re-start the Apache web server instance with the Start TCP Server (STRTCPSVR) command.
Configure a source to read the file in syslog-ng. Apache logs will
generally be placed in the /www/(server-name)/logs
directory. See Chapter 3, Configuring syslog-ng for details.
© 2007-2010 BalaBit IT Security
Please send your comments or documentation bugs to: documentation@balabit.com