vCenter Server rsyslog error: "rsyslogd imfile error: message received is larger than max msg size; message will be split and processed as another message"
search cancel

vCenter Server rsyslog error: "rsyslogd imfile error: message received is larger than max msg size; message will be split and processed as another message"

book

Article ID: 432975

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

On a VMware vCenter Server Appliance, the log files accumulate an elevated volume of warning messages. This behavior results in increased storage consumption within the log partitions.

The following specific log pattern is written to the system log files (such as /var/log/messages):

YYYY-MM-DDT HH:MM:SS rsyslogd: imfile error: message received is larger than max msg size; message will be split and processed as another message [v8.2306.0]

Environment

VMware vCenter Server 7.X

VMware vCenter Server 8.X

Cause

  • This behavior occurs when individual log messages exceed the maximum length defined by the rsyslog daemon's imfile module. The oversized messages are truncated, and the remaining portion is processed as a separate log entry.
  • By default, the parameter discardTruncatedMsg is configured to off, meaning the truncated warning notification is written to the log file.
  • No functional degradation or data loss occurs regarding the actual log contents, but the frequent recording of these warnings causes log filling.

Resolution

Configuration adjustments must be implemented within the rsyslog configuration parameters to suppress the fragmentation warnings.

Follow these steps to modify the imfile input parameters on an affected vCenter Server Appliance (vCSA).

  1. Establish an SSH session to the affected vCenter Server Appliance and log in using root credentials.
  2. Change directory to the VMware syslog configuration path by running:
    • cd /etc/vmware-syslog
  3. Create a backup copy of the configuration files within this directory to a safe location.
    • cp -p filename.conf filename.conf.bak
  4. Open the target configuration files containing the imfile input definitions using a text editor (such as vi).
  5. Locate the input(type="imfile" ...) block inside the file and append the following two parameters within the brackets:
    • discardTruncatedMsg="on"
      msgDiscardingError="off"
  6. Save the changes you made to the file and close the text editor.
  7. Apply the new configuration parameters by restarting the rsyslog system service with the following command:
    • systemctl restart rsyslog