Linux Syslog – Remove ‘Last Message Repeated x Times’ from Logs

debianlinuxlog-filessyslog

I have a script that updates me on any changes to the kernel log on my (Debian) servers.

The problem is that occasionally the log contains lines like:

last message repeated 4 times

I realize that this is a feature to shorten the size of the logs – but would prefer in this case that every instance of the message be logged instead.

Is there a way to turn off this feature?

Best Answer

On BSD systems, syslogd has -c option, you could start syslogd -cc to disable this feature.

On linux (checked on Debian), man syslogd lists no such option.

It would seem that there is no way to turn it off under linux:

http://www.syslog.org/forum/syslog-and-syslogd/disable-'last-message-repeated'-compression-on-lin/