I have two servers that keep giving errors regarding syslog.
I checked the service and it appears to be running fine except for some errors I saw in the journal:
So I see the notice about the rate-limiting so I checked:
It looks like it's not even being used. Where does cPanel control the rate-limiting? Or is there a way to check if a bigger problem is causing the issue? I suspect it's related to a server backup at night at the same time, but not sure how to work around that. Any help is appreciated.
Bash:
Time: Mon Nov 30 01:00:13 2020 -0500
Error: Failed to detect code [UdtnxuePtqKOQsz49h] in SYSLOG_LOG [/var/log/messages]
SYSLOG may not be running correctly on host.example.com
Bash:
[[email protected] ~]# grep UdtnxuePtqKOQsz49h /var/log/messages
[[email protected] ~]# zgrep UdtnxuePtqKOQsz49h /var/log/messages-*
[[email protected] ~]# /scripts/restartsrv_rsyslogd --check
The 'rsyslog' service passed the check: rsyslog (/usr/sbin/rsyslogd -n) is running as root with PID 1516483 (systemd+/proc check method).
[[email protected] ~]# cat /var/run/syslogd.pid
1516483
[[email protected] ~]# logger -p auth.notice "test123"
[[email protected] ~]# grep "test123" /var/log/messages
Nov 30 16:08:27 host centos: test123
[[email protected] ~]# /scripts/restartsrv_rsyslogd --status
rsyslog (/usr/sbin/rsyslogd -n) is running as root with PID 1516483 (systemd+/proc check method).
[[email protected] ~]# service rsyslog status -l
Redirecting to /bin/systemctl status -l rsyslog.service
● rsyslog.service - System Logging Service
Loaded: loaded (/usr/lib/systemd/system/rsyslog.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2020-11-30 00:21:07 EST; 15h ago
Docs: man:rsyslogd(8)
http://www.rsyslog.com/doc/
Main PID: 1516483 (rsyslogd)
CGroup: /system.slice/rsyslog.service
└─1516483 /usr/sbin/rsyslogd -n
Nov 30 01:00:00 host.example.com rsyslogd[1516483]: imjournal: begin to drop messages due to rate-limiting
Nov 30 01:01:12 host.example.com rsyslogd[1516483]: imjournal: 2765 messages lost due to rate-limiting
Nov 30 01:10:06 host.example.com rsyslogd[1516483]: imjournal: begin to drop messages due to rate-limiting
Nov 30 01:11:13 host.example.com rsyslogd[1516483]: imjournal: 2490 messages lost due to rate-limiting
Nov 30 01:20:07 host.example.com rsyslogd[1516483]: imjournal: begin to drop messages due to rate-limiting
Nov 30 01:21:14 host.example.com rsyslogd[1516483]: imjournal: 2535 messages lost due to rate-limiting
Nov 30 01:27:18 host.example.com rsyslogd[1516483]: imjournal: journal reloaded... [v8.24.0-57.el7_9 try http://www.rsyslog.com/e/0 ]
Nov 30 01:27:18 host.example.com rsyslogd[1516483]: imjournal: journal reloaded... [v8.24.0-57.el7_9 try http://www.rsyslog.com/e/0 ]
Nov 30 01:29:08 host.example.com rsyslogd[1516483]: imjournal: begin to drop messages due to rate-limiting
Nov 30 01:31:16 host.example.com rsyslogd[1516483]: imjournal: 536 messages lost due to rate-limiting
Bash:
[[email protected] ~]# cat /etc/systemd/journald.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See journald.conf(5) for details.
[Journal]
#Storage=auto
#Compress=yes
#Seal=yes
#SplitMode=uid
#SyncIntervalSec=5m
#RateLimitInterval=30s
#RateLimitBurst=1000
#SystemMaxUse=
#SystemKeepFree=
#SystemMaxFileSize=
#RuntimeMaxUse=
#RuntimeKeepFree=
#RuntimeMaxFileSize=
#MaxRetentionSec=
#MaxFileSec=1month
#ForwardToSyslog=yes
#ForwardToKMsg=no
#ForwardToConsole=no
#ForwardToWall=yes
#TTYPath=/dev/console
#MaxLevelStore=debug
#MaxLevelSyslog=debug
#MaxLevelKMsg=notice
#MaxLevelConsole=info
#MaxLevelWall=emerg
#LineMax=48K
Last edited by a moderator: