Re: Fwd: patch for scripts/services/postfix: recognize "(n bytes)" after timeouts and lost connections
Mike Tremaine <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
On Aug 11, 2008, at 7:34 AM, Kirk Bauer wrote: > ---------- Forwarded message ---------- > From: Peter Johnson <[email protected]> > Date: Sun, 10 Aug 2008 20:47:43 -0400 > Subject: patch for scripts/services/postfix: recognize "(n bytes)" > after timeouts and lost connections > To: [email protected] > > Logwatch fails to recognize a ton of messages in my postfix logs, > of the form: > > "lost connection after DATA (0 bytes) from unknown[a.b.c.d]" > > The attached patch (relative to CVS sync as of 2008-08-10 20:26 > EST) fixes > that, and the similar case of "timeout after BLAH (n bytes)". I > feel maximal > matching is safe here because the line always ends in "from hostname > [ip]" and > the reason always lies between the "after" and the "from". > > Thanks. > > pete > > Committed to CVS... -Mike