RHEL7 disable Journald Rate Limiting

Exported on 19-Aug-2021 08:51:12

Disable rate limiting of system logs to ensure all events are logged and none are dropped.

Parameters

Name Type Script Reference Default Value Comment
App Server Linux / Unix Server appServer
Linux: Root User Linux OS Credential linuxRootUser

1 - R7 Disable journald Log Rate Limit

If journald log rate limiting is enahled in /etc/systemd/journald.conf then update the file to disable it.

The connection details have changed from the last step.

Login as user on node

Connect via SSH
ssh user@hostname
This is a Bash Script make sure you run it with bash -l from a terminal session
# If it is already set, update it.
F="/etc/systemd/journald.conf"

if grep -q 'RateLimitInterval=0' $F; then
    echo "Journald rate limiting is already disabled"
else
    sed -i 's/?RateLimitInterval=.*/RateLimitInterval=0/g' $F
    echo "Journald rate limiting has been disabled"
fi

2 - R7 Restart Journald

Restart journald service.

Login as user on node

Connect via SSH
ssh user@hostname
This is a Bash Script make sure you run it with bash -l from a terminal session
systemctl restart systemd-journald.service