6.5.1

Table Of Contents
3 Select VM Options.
4 Click Advanced and click Edit .
5 Add or edit the vmx.log.keepOld parameter to the number of les to keep for this virtual machine.
For example, to keep 20 log les and begin deleting the oldest les as new ones are created, enter 20.
6 Click OK.
Control When to Switch to New Virtual Machine Log Files
The vmx.log.rotateSize parameter species the log le size at which the switch to new log les happens for
the logs for individual virtual machines. Use this parameter together with the vmx.log.keepOld parameter to
ensure acceptable log le sizes without losing critical logging information.
The vmx.log.keepOld parameter determines how many virtual machine log le instances the ESXi host
retains before overwriting the rst log le. The default value of vmx.log.keepOld is 10, a suitable number to
properly log complex operations such as vMotion. You must increase this number signicantly when you
change the value of vmx.log.rotateSize.
This procedure discusses changing the virtual machine rotate size on an individual virtual machine.
To limit the rotate size for all virtual machines on a host, edit the /etc/vmware/config le. If the
vmx.log.KeepOld property is not dened in the le, you can add it. You can use a PowerCLI script to change
this parameter for selected virtual machines on a host.
You can use the log.rotateSize parameter to aect all log les, not just the virtual machine log les.
You can change the value of vmx.log.rotateSize for all virtual machines from the vSphere Web Client or by
using a PowerCLI script.
Prerequisites
Turn o the virtual machine.
Procedure
1 Log in to a vCenter Server system using the vSphere Web Client and nd the virtual machine.
a In the Navigator, select VMs and Templates.
b Find the virtual machine in the hierarchy.
2 Right-click the virtual machine and click Edit .
3 Select VM Options.
4 Click Advanced and click Edit .
5 Add or edit the vmx.log.rotateSize parameter to the maximum le size before log information is
added to a new le.
Alternatively, you can add or edit the rst log le if you have more log les than the vmx.log.keepOld
parameter species.
Specify the size in bytes.
6 Click OK.
Chapter 10 System Log Files
VMware, Inc. 171