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

Asterisk Bug Tracker noreply at bugs.digium.com
Sat May 30 15:26:47 CDT 2009


The following issue requires your FEEDBACK. 
====================================================================== 
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:                     feedback
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-30 15:26 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0105804) seanbright (manager) - 2009-05-30 15:26
 https://issues.asterisk.org/view.php?id=14905#c105804 
---------------------------------------------------------------------- 
bamby,

Sorry it has taken so long to comment on this patch.  I definitely like
the idea.  Would it be possible for you to build a patch against the trunk
version of asterisk?

Let me know.  Thanks. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-30 15:26 seanbright     Note Added: 0105804                          
2009-05-30 15:26 seanbright     Status                   assigned => feedback
======================================================================




More information about the asterisk-bugs mailing list