Hide Forgot
Description of problem: Rate limiting does not work. See /CoreOS/rsyslog/Sanity/bz672182-RFE-Provide-rate-limiting-support http://beaker-archive.app.eng.bos.redhat.com/beaker-logs/2013/10/5211/521186/1091577/16524460/TESTOUT.log Version-Release number of selected component (if applicable): rsyslog-7.4.2-3.el7 How reproducible: 100% Steps to Reproduce: 1. # cat >>/etc/rsyslog.conf <<EOF \$SystemLogRateLimitInterval 5 \$SystemLogRateLimitBurst 10 local2.* /var/log/local2 EOF 2. # service rsyslog restart 3. # (for i in `seq 1 80`; do echo "testnumber$i" sleep 0.1s done) | logger -p local2.error Actual results: 80 messages logged Expected results: 20 messages logged
Just a note: In rsyslog 7.4.2, the messages aren't read from the system log socket. They are read directly from journal and therefore instead of $SystemLogRateLimit* you'll have to use $ImjournalRateLimit* Please, give this a try and perhaps close this as not-a-bug.
I have fixed the test so for RHEL-7 it uses ImjournalRateLimit and ti work correctly.