[patch] syslogd: expand duplicate message supression
Chris Craig
chris at microtronix.com
Thu Mar 19 20:44:31 UTC 2009
I've attached a patch which expands on the -D option for syslogd, in
which not only identical messages are suppressed but also those that
have different timestamps (and priorities, if that's ok). It also prints
the message "last message repeated N times" like other syslogds that
support this feature.
The difference between this and other syslogds though is that it doesn't
try to detect whether there are only 2 duplicates, and just print the
message again instead of "last message repeated 1 times". Oh well.
Also if MARK ever gets re-enabled it doesn't check for that.
Furthermore the "last message..." message will have the timestamp of the
first different message, rather than the last duplicate message.
And it will keep racking up duplicates as long as they're generated,
rather than occasionally dumping the "last message..." message.
--
Chris Craig
Microtronix Datacom Ltd.
9-1510 Woodcock Street
London ON N6H 5S1
Canada
Toll-Free: (888) 690-0091 x253 (NA only)
Phone: (519) 690-0091 x253
http://microtronix.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: syslogd_dup.patch
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090319/08076ceb/attachment.diff>
More information about the busybox
mailing list