12

Is there a way to configure rsyslog to suppress identical duplicate messages?

In certain situations (often hardware failures) my syslog can grow to 100 MB or more due to repeated messages every quarter-second or so.

David Pfeffer
  • 379
  • 1
  • 3
  • 12

1 Answers1

12

See the $RepeatedMsgReduction config switch, which turns such duplicate messages into one by logging "Last line repeated n times". You can also discard unwanted messages.

Dave Jarvis
  • 209
  • 2
  • 9
sr_
  • 15,224
  • 49
  • 55