Configure IBM HTTP Server logs to rotate/roll daily
If the IBM HTTP Server for my Web Server logs become too large to open and take up too much disk space, configure the Web Server to roll the logs by day and size.
Steps to perform:
IBM HTTP Server has many logs in the Folder “<Installation_Directory>/IBM/HTTPServer/logs”. You can customize those log files such as the following logs in IBM HTTP Server:
- Admin Log: admin_access.log
- Admin Error Log: admin_error.log
- Access Log: access_log
- Error Log: error_log
- Go to the location of your IBM HTTPServer installation ($IHS_HOME or <Installation_DIR>/IBMHTTPServer).
- Change to the “conf” directory and open the httpd.conf file.
- Locate the line: CustomLog log/access_log common.
- Comment out that line, and after it add this line:
Change:
CustomLog “|/opt/IBM/HTTPServer/bin/rotatelog -l /opt/IBM/HTTPServer/log/access_log.%Y.%m.%d 5M” common
To:
#CustomLog log/access_log common
CustomLog “|/opt/IBM/HTTPServer/bin/rotatelog -l /opt/IBM/HTTPServer/log/access_log.%Y.%m.%d 5M” common
- Locate the Line: ErrorLog log/error_log.
- Comment out that line, and after it add this line:
Change:
ErrorLog “|/opt/IBM/HTTPServer/bin/rotatelog -l /opt/IBM/HTTPServer/log/error_log.%Y.%m.%d 5M”
To:
# ErrorLog log/error_log
ErrorLog “|/opt/IBM/HTTPServer/bin/rotatelog -l /opt/IBM/HTTPServer/log/error_log.%Y.%m.%d 5M”
- Then restart IBM HTTPServer.
Review the logs in the “<Installation_Directory>/IBM/HTTPServer/logs” directory to see the access log is logging by the Current date.
Retiring Lawson, PeopleSoft, or Oracle? APIX archives the entire application — every table, every year, attachments and security included — into your own AWS account in about 30 days, so you can decommission the legacy system and keep full access to the history.



