Journalctl error logs

Hi All,

Please help, got multiple error logs in journalctl like these, I'm not sure of these,
tried to restart rsyslog but still the same error. I have 2 servers and both are the same config and permission for /var/log/syslog and only 1 server got this error and was filling up the space. TYIA

file '/var/log/syslog'[8] write error - see https://www.rsyslog.com/solving-rsyslog-write-errors/ for help OS er>
rsyslogd[762]: action 'action-3-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check for addit>

This rsyslog error means it's unable to write to /var/log/syslog, which typically points to one of the following on the failing server only:

:magnifying_glass_tilted_left: ChatGPT 4o Step-by-step diagnostic (using OODA Loop):

1. Observe (logs and state)

Run:

journalctl -xe | grep rsyslog
ls -l /var/log/syslog
df -h /var

Check:

  • File permissions and ownership of /var/log/syslog (should be root:adm or root:syslog)
  • If the filesystem is full
  • If rsyslog is choked with too many messages or rate-limiting
  • If SELinux or AppArmor is interfering

2. Orient (compare working server)

On the working server:

ls -l /var/log/syslog
stat /var/log/syslog

Compare:

  • File size
  • Owner/Group
  • Permissions (should be -rw-r----- or similar)
  • Any inode mismatch (e.g. deleted file still open)

3. Decide (based on findings)

If file was deleted or rotated improperly, rsyslog might still be writing to an orphaned inode.
Check with:

lsof | grep syslog

4. Act (minimal correction)

Try the following sequence (only on broken server):

systemctl stop rsyslog
mv /var/log/syslog /var/log/syslog.bak
touch /var/log/syslog
chown syslog:adm /var/log/syslog
chmod 640 /var/log/syslog
systemctl start rsyslog

This ensures a fresh file with correct perms and no orphaned descriptors.


Let me know the output of ls -l /var/log/syslog and df -h from the broken server if the issue persists.