You can use ESXCLI to configure local auditing.
The following example specifies the size of the audit record storage capacity and enables the audit record storage. Specify one of the options listed in Connection Options for ESXCLI Host Management Commands in place of <conn_options>
.
Note: The size of the audit record storage capacity is measured in kilobytes in
ESXi 7.0 and earlier, and in megabytes in
ESXi 7.0 Update 1 and later.