The current implementation of ENABLE_FEATURE_SYSLOGD_DUP includes the timestamp into the comparison of current and previous log message. Therefore duplicates are only detected if they appear in the same second. The following patch moves the detection into timestamp_and_log() where the timestamp has been removed and also adds a message how often a message was repeated.
Created attachment 6151 [details] syslog dup detection improvement
(In reply to comment #0) > The current implementation of ENABLE_FEATURE_SYSLOGD_DUP includes the timestamp > into the comparison of current and previous log message. Therefore duplicates > are only detected if they appear in the same second. This is intended. If a message repeats *occasionally*, say, every 3 seconds, current code shows it. It suppresses the case when the same message repeats with high frequency.