[asterisk-bugs] [Asterisk 0014905]: [patch] Log message storms prevention.
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Jul 27 14:52:08 CDT 2009
The following issue has been CLOSED
======================================================================
https://issues.asterisk.org/view.php?id=14905
======================================================================
Reported By: bamby
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 14905
Category: Core/General
Reproducibility: N/A
Severity: feature
Priority: normal
Status: closed
Asterisk Version: 1.4.21.1
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
Resolution: open
Fixed in Version:
======================================================================
Date Submitted: 2009-04-15 08:44 CDT
Last Modified: 2009-07-27 14:52 CDT
======================================================================
Summary: [patch] Log message storms prevention.
Description:
Hi,
Asterisk allows the duplicate log messages to be written to the log
without limits. This can lead to quite unpleasant problems with the disk
space, like for example it happened recently with the issue 0014723.
The BSD syslogd uses a quite useful technique against such storms - when
log message is a duplicate of the previous, then this message is not
written to the log, but is silently counted instead. And when a new message
comes that differs from the previous one, then the message 'last message
repeated N times' is written to the log, following by the new message.
I've implemented this technique for the asterisk. Please see the attached
patch.
======================================================================
----------------------------------------------------------------------
(0108278) lmadsen (administrator) - 2009-07-27 14:52
https://issues.asterisk.org/view.php?id=14905#c108278
----------------------------------------------------------------------
Issue closed for now. If the reporter can reopen and attach the patch,
updated for trunk, then that'd be great. Thanks!
Issue History
Date Modified Username Field Change
======================================================================
2009-07-27 14:52 lmadsen Note Added: 0108278
2009-07-27 14:52 lmadsen Status feedback => closed
======================================================================
More information about the asterisk-bugs
mailing list