KB 85249 の Workaround 実施手順を以下に記載します。
・vCenter has a large number of localhost_access log files generated under
/storage/log/vmware/eam/web/ (85249)
https://kb.vmware.com/s/article/85249
KB 85249 の Workaround 実施前の状態
root@test [ /var/log/vmware/eam/web ]# ls
catalina-2022-08-28.log catalina-2022-10-11.log catalina-2022-11-03.log localhost-2022-11-06.log localhost_access.2022-10-05.log localhost_access.2022-10-29.log
catalina-2022-09-07.log catalina-2022-10-12.log catalina-2022-11-04.log localhost-2022-11-26.log localhost_access.2022-10-07.log localhost_access.2022-10-30.log
catalina-2022-09-11.log catalina-2022-10-13.log catalina-2022-11-05.log localhost-2022-11-27.log localhost_access.2022-10-08.log localhost_access.2022-10-31.log
catalina-2022-09-12.log catalina-2022-10-14.log catalina-2022-11-06.log localhost-2022-12-08.log localhost_access.2022-10-09.log localhost_access.2022-11-01.log
catalina-2022-09-13.log catalina-2022-10-15.log catalina-2022-11-26.log localhost_access.2022-09-07.log localhost_access.2022-10-10.log localhost_access.2022-11-02.log
catalina-2022-09-14.log catalina-2022-10-16.log catalina-2022-11-27.log localhost_access.2022-09-08.log localhost_access.2022-10-11.log localhost_access.2022-11-03.log
catalina-2022-09-15.log catalina-2022-10-17.log catalina-2022-11-28.log localhost_access.2022-09-09.log localhost_access.2022-10-12.log localhost_access.2022-11-04.log
catalina-2022-09-16.log catalina-2022-10-18.log catalina-2022-11-29.log localhost_access.2022-09-10.log localhost_access.2022-10-13.log localhost_access.2022-11-05.log
catalina-2022-09-25.log catalina-2022-10-19.log catalina-2022-11-30.log localhost_access.2022-09-11.log localhost_access.2022-10-14.log localhost_access.2022-11-26.log
catalina-2022-09-26.log catalina-2022-10-20.log catalina-2022-12-01.log localhost_access.2022-09-12.log localhost_access.2022-10-15.log localhost_access.2022-11-27.log
catalina-2022-09-27.log catalina-2022-10-21.log catalina-2022-12-02.log localhost_access.2022-09-13.log localhost_access.2022-10-16.log localhost_access.2022-11-28.log
catalina-2022-09-28.log catalina-2022-10-22.log catalina-2022-12-03.log localhost_access.2022-09-14.log localhost_access.2022-10-17.log localhost_access.2022-11-29.log
catalina-2022-09-29.log catalina-2022-10-23.log catalina-2022-12-04.log localhost_access.2022-09-15.log localhost_access.2022-10-18.log localhost_access.2022-11-30.log
catalina-2022-09-30.log catalina-2022-10-24.log catalina-2022-12-05.log localhost_access.2022-09-25.log localhost_access.2022-10-19.log localhost_access.2022-12-01.log
catalina-2022-10-01.log catalina-2022-10-25.log catalina-2022-12-06.log localhost_access.2022-09-26.log localhost_access.2022-10-20.log localhost_access.2022-12-02.log
catalina-2022-10-02.log catalina-2022-10-26.log catalina-2022-12-07.log localhost_access.2022-09-27.log localhost_access.2022-10-21.log localhost_access.2022-12-03.log
catalina-2022-10-03.log catalina-2022-10-27.log catalina-2022-12-08.log localhost_access.2022-09-28.log localhost_access.2022-10-22.log localhost_access.2022-12-04.log
catalina-2022-10-04.log catalina-2022-10-28.log catalina.log localhost_access.2022-09-29.log localhost_access.2022-10-23.log localhost_access.2022-12-05.log
catalina-2022-10-05.log catalina-2022-10-29.log localhost-2022-08-28.log localhost_access.2022-09-30.log localhost_access.2022-10-24.log localhost_access.2022-12-06.log
catalina-2022-10-07.log catalina-2022-10-30.log localhost-2022-09-07.log localhost_access.2022-10-01.log localhost_access.2022-10-25.log localhost_access.2022-12-07.log
catalina-2022-10-08.log catalina-2022-10-31.log localhost-2022-09-16.log localhost_access.2022-10-02.log localhost_access.2022-10-26.log localhost_access.log
catalina-2022-10-09.log catalina-2022-11-01.log localhost-2022-09-25.log localhost_access.2022-10-03.log localhost_access.2022-10-27.log localhost.log
catalina-2022-10-10.log catalina-2022-11-02.log localhost-2022-10-07.log localhost_access.2022-10-04.log localhost_access.2022-10-28.log
KB 85249 の Workaround 実施手順
1. 以下コマンドにて [/usr/lib/vmware-eam/web/conf/server.xml] のバックアップ
を取得します。
cp /usr/lib/vmware-eam/web/conf/server.xml /usr/lib/vmware-eam/web/conf/server.xml_bak
2. vi コマンドにて [/usr/lib/vmware-eam/web/conf/server.xml] を開き、
[<Valve className=”org.apache.catalina.valves.AccessLogValve”] の
行を見つけます。
3. [<Valve className=”org.apache.catalina.valves.AccessLogValve”] の
行の一行下に [maxDays=”<numberOfDays>”] を追記します。
実際に追記した際の例は以下です。
(今回は 15 世代に設定します。)
上記設定が完了したら保存してください。
4. 以下コマンドにて vmware-eam サービスを再起動を行います。
service-control --restart vmware-eam
5. [/storage/log/vmware/eam/web] 配下の localhost_access*.log が
自動的に削除されたことを確認します。
※ localhost_acess*.log は自動的に削除されましたが、catalina*.log
は特に変化がないため、別途手動で削除する等の対応が必要そうです。
root@ss155 [ /usr/lib/vmware-eam/web/conf ]# ls /var/log/vmware/eam/web
catalina-2022-08-28.log catalina-2022-10-02.log catalina-2022-10-18.log catalina-2022-11-02.log catalina-2022-12-06.log localhost_access.2022-11-28.log
catalina-2022-09-07.log catalina-2022-10-03.log catalina-2022-10-19.log catalina-2022-11-03.log catalina-2022-12-07.log localhost_access.2022-11-29.log
catalina-2022-09-11.log catalina-2022-10-04.log catalina-2022-10-20.log catalina-2022-11-04.log catalina-2022-12-08.log localhost_access.2022-11-30.log
catalina-2022-09-12.log catalina-2022-10-05.log catalina-2022-10-21.log catalina-2022-11-05.log catalina.log localhost_access.2022-12-01.log
catalina-2022-09-13.log catalina-2022-10-07.log catalina-2022-10-22.log catalina-2022-11-06.log localhost-2022-08-28.log localhost_access.2022-12-02.log
catalina-2022-09-14.log catalina-2022-10-08.log catalina-2022-10-23.log catalina-2022-11-26.log localhost-2022-09-07.log localhost_access.2022-12-03.log
catalina-2022-09-15.log catalina-2022-10-09.log catalina-2022-10-24.log catalina-2022-11-27.log localhost-2022-09-16.log localhost_access.2022-12-04.log
catalina-2022-09-16.log catalina-2022-10-10.log catalina-2022-10-25.log catalina-2022-11-28.log localhost-2022-09-25.log localhost_access.2022-12-05.log
catalina-2022-09-25.log catalina-2022-10-11.log catalina-2022-10-26.log catalina-2022-11-29.log localhost-2022-10-07.log localhost_access.2022-12-06.log
catalina-2022-09-26.log catalina-2022-10-12.log catalina-2022-10-27.log catalina-2022-11-30.log localhost-2022-11-06.log localhost_access.2022-12-07.log
catalina-2022-09-27.log catalina-2022-10-13.log catalina-2022-10-28.log catalina-2022-12-01.log localhost-2022-11-26.log localhost_access.log
catalina-2022-09-28.log catalina-2022-10-14.log catalina-2022-10-29.log catalina-2022-12-02.log localhost-2022-11-27.log localhost.log
catalina-2022-09-29.log catalina-2022-10-15.log catalina-2022-10-30.log catalina-2022-12-03.log localhost-2022-12-08.log
catalina-2022-09-30.log catalina-2022-10-16.log catalina-2022-10-31.log catalina-2022-12-04.log localhost_access.2022-11-26.log
catalina-2022-10-01.log catalina-2022-10-17.log catalina-2022-11-01.log catalina-2022-12-05.log localhost_access.2022-11-27.log
6. 手順[5] で localhost_access*.log が削除されたことを確認したら、
[server.xml_bak]を削除します。
rm /usr/lib/vmware-eam/web/conf/server.xml_bak
以上で Workaround の手順は完了です。