Incorrect logging of Infrastructure Management server logs
Scenario: The ajp.log is logging messages into the Apache logs.
Reason: This issue occurs if you configured automatic rolling of Infrastructure logs in an earlier release. For more information, see Infrastructure-Management-server-logs-are-not-rolling-automatically-causing-performance-issues.
Workaround: You need to individually configure each of the Apache log files for automatic rolling. To do this, perform the following steps.
Change the httpd-proxy.conf file:
- Edit the httpd-proxy.conf file located at:
- (Windows) <InfrastructureManagement_Install_Location>\pw\apache\conf\extra\
- (Linux) <InfrastructureManagement_Install_Location>/pw/apache/conf/extra/
- In the first line, at the top, ensure that the ajp.log is configured to store a maximum of 10 files (before rolling over logs) and upto a maximum size of 10 MB (after which a new file must be created), if this is not already done.
Delete lines 2-7 (see the following example) and save the file.
CustomLog "|/usr/pw/apache/bin/rotatelogs -n 10 logs/access.log 10M" combinedCustomLog "|/usr/pw/apache/bin/rotatelogs -n 10 logs/deflate.log 10M" combinedCustomLog "|/usr/pw/apache/bin/rotatelogs -n 10 logs/error.log 10M" combinedCustomLog "|/usr/pw/apache/bin/rotatelogs -n 10 logs/error_log 10M" combinedCustomLog "|/usr/pw/apache/bin/rotatelogs -n 10 logs/install.log 10M" combinedCustomLog "|/usr/pw/apache/bin/rotatelogs -n 10 logs/ssl_request_log 10M" combined
Change the httpd.conf file:
- Edit the httpd.conf file located at:
- (Windows) <InfrastructureManagement_Install_Location>\pw\apache\conf
- (Linux) <InfrastructureManagement_Install_Location>/pw/apache/conf
- Locate the deflate.log line, for example, CustomLog logs/deflate.log deflate env=!image-request and replace it with:
- (Windows) CustomLog "|bin/rotatelogs.exe -n 10 logs/deflate.log 10M" deflate env=!image-request
- (Linux) CustomLog "|/usr/pw/apache/bin/rotatelogs -n 10 logs/deflate.log 10M" deflate env=!image-request
- Locate the access.log line, for example, CustomLog logs/access_log common and replace it with:
- (Windows) CustomLog "|bin/rotatelogs.exe -n 10 logs/access.log 10M" common
- (Linux) CustomLog "|/usr/pw/apache/bin/rotatelogs -n 10 logs/access_log 10M" common
- Save the file.
- Change the httpd-ssl.conf file:
- Edit the httpd-ssl.conf file located at:
- (Windows) <InfrastructureManagement_Install_Location>\pw\apache\conf\extra\
- (Linux) <InfrastructureManagement_Install_Location>/pw/apache/conf/extra/
- Locate the error.log line, for example, ErrorLog /usr/pw/apache/logs/error_log, and after this line, add the following line:
- (Windows) CustomLog "|bin/rotatelogs.exe -n 10 logs/error_log 10M" combined
- (Linux) CustomLog "|/usr/pw/apache/bin/rotatelogs -n 10 /usr/pw/apache/logs/error_log 10M" combined
- Locate the ssl_request_log, for example, CustomLog "C:\auto_product\tsim\pw\apache\logs\ssl_request_log" and replace it with the following line on both Windows and Linux:
CustomLog "|/usr/pw/apache/bin/rotatelogs -n 10 logs/ssl_request_log 10M" combined - Save the file.
- Edit the httpd-ssl.conf file located at:
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*