vCenter has a large number of localhost_access log files generated under /storage/log/vmware/eam/web/
search cancel

vCenter has a large number of localhost_access log files generated under /storage/log/vmware/eam/web/

book

Article ID: 326212

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

This is an informational article regarding a known issue discovered with the ESX Agent Manager (EAM) service and log file rotation.


Symptoms:

In vCenter Server 7.0 Update 1 (or newer), a large number of files may be present under the following directory:

  • Path: /storage/log/vmware/eam/web/
  • Files: localhost_access.*.log

 


Environment

VMware vCenter Server 7.0.x

Cause

This is caused by EAM not having a log file rotation parameter by default, and will leave older files present with no cleanup invoked.

Due to the new functionality of vSphere Clustering Services in 7.0 Update 1, the amount of polling that occurs with EAM causing these log files to generate quickly and can produce a significant quantity of log files.

Resolution

This issue is resolved in VMware vCenter 8.0 GA (build number 20519528).

In VMware vCenter 7.0 Update 3 (build number 18700403) the localhost_access.*.log files are only zipped and not deleted.


Workaround:
On the vCenter Server shell (or SSH session)
  1. Backup the file /usr/lib/vmware-eam/web/conf/server.xml
  2. Stop the ESX Agent Manager service:
    # service-control --stop vmware-eam
  3. Edit /usr/lib/vmware-eam/web/conf/server.xml
  4. Locate the line <Valve className="org.apache.catalina.valves.AccessLogValve"
  5. Modify the numberOfDays : maxDays="<numberOfDays>" or add  maxDays="<numberOfDays>" if the parameter is not present within the brackets (see example screenshot below)
  6. Save the change changes, and restart the ESX Agent Manager service:
    # service-control --start vmware-eam

Example screenshot:
image.png

Additional Information

For more information on the vSphere Cluster Service, please refer to the main KB:
https://kb.vmware.com/s/article/80472


Impact/Risks:

The impact/risk may be that the /storage/log directory fills up, preventing one or more services from functioning. This can lead to instability of vCenter Server.