This article provides steps to change the number of logs per rotation and the size of the log file before it rotates.
VMware vSphere ESXi 7.X
VMware vSphere ESXi 8.X
To increase the number of logs per rotation and the size of the log file before it rotates using esxcli:
esxcli system syslog config logger list
esxcli system syslog config logger set --id=<logger_name> --rotate=15 --size=10240
esxcli system syslog config logger set --id=vmkernel --rotate=15 --size=10240
esxcli system syslog config logger set --id=hostd --rotate=15 --size=10240
esxcli system syslog reload
日本語バージョン: ESXi のログローテーションパラメータを変更する方法