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.

  1. Change the httpd-proxy.conf file:
    1. Edit the httpd-proxy.conf file located at:
      • (Windows) <InfrastructureManagement_Install_Location>\pw\apache\conf\extra\
      • (Linux) <InfrastructureManagement_Install_Location>/pw/apache/conf/extra/
    1. 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.

    2. Delete lines 2-7 (see the following example) and save the file.

      CustomLog "|/usr/pw/apache/bin/rotatelogs -n 10 logs/access.log 10M" combined

      CustomLog "|/usr/pw/apache/bin/rotatelogs -n 10 logs/deflate.log 10M" combined

      CustomLog "|/usr/pw/apache/bin/rotatelogs -n 10 logs/error.log 10M" combined

      CustomLog "|/usr/pw/apache/bin/rotatelogs -n 10 logs/error_log 10M" combined

      CustomLog "|/usr/pw/apache/bin/rotatelogs -n 10 logs/install.log 10M" combined

      CustomLog "|/usr/pw/apache/bin/rotatelogs -n 10 logs/ssl_request_log 10M" combined

  2. Change the httpd.conf file:
    1. Edit the httpd.conf file located at:
      • (Windows) <InfrastructureManagement_Install_Location>\pw\apache\conf
      • (Linux) <InfrastructureManagement_Install_Location>/pw/apache/conf
    1. 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
    2. 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
    3. Save the file.
  3. Change the httpd-ssl.conf file:
    1. Edit the httpd-ssl.conf file located at:
      • (Windows) <InfrastructureManagement_Install_Location>\pw\apache\conf\extra\
      • (Linux) <InfrastructureManagement_Install_Location>/pw/apache/conf/extra/
    2. 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
    3. 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
    4. Save the file.
Was this page helpful? Yes No Submitting... Thank you

Comments