[asterisk-bugs] [Asterisk 0014905]: [patch] Log message storms prevention.

Asterisk Bug Tracker noreply at bugs.digium.com
Thu May 28 15:29:35 CDT 2009


The following issue has been ASSIGNED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14905 
====================================================================== 
Reported By:                bamby
Assigned To:                seanbright
====================================================================== 
Project:                    Asterisk
Issue ID:                   14905
Category:                   Core/General
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     assigned
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:              
====================================================================== 
Date Submitted:             2009-04-15 08:44 CDT
Last Modified:              2009-05-28 15:29 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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-28 15:29 seanbright     Status                   new => assigned     
2009-05-28 15:29 seanbright     Assigned To               => seanbright      
======================================================================




More information about the asterisk-bugs mailing list