I found from VMware page Controlling the size and number of vmkernel logs in ESX hosts (1037645).
The conf logrotate in ESX (not ESXi) is avalaible in next related versions:
- VMware ESX Server 3.5.x
- VMware ESX 4.1.x
- VMware ESX 4.0.x
With this code in the file "/etc/logrotate.d/vmkernel":
/var/log/vmkernel{
create 0600 root root
missingok
nocompress
# keep a history over 3 years.
monthly
rotate 36
# max log size of 200k (thus limiting total disk usage to under 8megs)
size 200k
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
For ESXi (not ESX) 7.0, I found doc contains in the page 213 the chapter: "Configuring System Logging" in the pdf: VMware ESXi Installation and Setup.
He contains a explained text of @Gerald Schneider answer.
Thank's Again
NOTE: After comment @Gerald Schneider, ESX is not ESXi, read differences in this link: ESX vs. ESXi