rsyslog: enable duplicate message suppression

We've had a couple of bugs recently, where processes filled up the
disk with log messages. In both cases, a single message was repeated
over and over, thousands of times per second.

To resolve this, enable the RepeatedMsgReduction option for rsyslogd.
The RepeatedMsgReduction option will suppress consecutive duplicate
messages. When a non-duplicate message arrives, rsyslogd will output
a count of the duplicates, and then the new message. Alteratively,
if no new non-duplicate message within 60 seconds, rsyslogd will
output the repeat count at the end of the 60 seconds.

BUG=chromium:363224
TEST=platform_LogDupSuppression

Change-Id: I8c6ecf3404d5e5f439155e90a60ae5f83a68a3f7
Reviewed-on: https://chromium-review.googlesource.com/195513
Tested-by: mukesh agrawal <quiche@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: mukesh agrawal <quiche@chromium.org>
1 file changed