In a vCenter Server environment, the following log is frequently forwarded to remote syslog servers or local logs (like /var/log/messages)
YYYY-MM-DDTHH:MM:SS rsyslogd: imfile error: message received is larger than max msg size; message will be split and processed as another message v8.2001.0 try https://www.rsyslog.com/e/2175
VMware vCenter Server 7.0
VMware vCenter Server 8.0
This logging occurs when a single log message exceeds the maximum message size configured for rsyslog. The imfile module streams log messages, and when a line is too long, rsyslog splits the message into data chunks to prevent data loss. The error is a standard notification of this message fragmentation process by rsyslog.
These messages indicate normal system behavior and can be ignored. To suppress them:
Log in to the vCenter Server Appliance via SSH as the root user.
mkdir /root/syslog-bak && cp /etc/vmware-syslog/*.conf /root/syslog-bak/Edit the configuration files located in the /etc/vmware-syslog/ directory.
Add the parameters discardTruncatedMsg="on" and msgDiscardingError="off" to each input type="imfile" section.
Example configuration:
input(type="imfile"
discardTruncatedMsg="on"
msgDiscardingError="off"
)Restart the rsyslog service to apply the changes using the following command:systemctl restart rsyslog