Package: logwatch
Version: 7.4.3-1
Severity: normal
Tags: patch

Dear Maintainer,

I am running dovecot imap on several systems.  I do not think I have turned on
any special logging or debgging options. But my logwatch output is very full of
lines such as:

 **Unmatched Entries**
    dovecot: imap(username): Logged out in=10025 out=379125: 1 Time(s)

As there are (literally) thousands of these lines, I think it would be best if
the "Logged out" line was ignored by logwatch.  It does not need to be counted
as it is (presumably) the same as the "Successful Logins" count.

The patch below works for me in suppresing these lines.

--- /usr/share/logwatch/scripts/services/dovecot        2016-04-30 
14:00:53.000000000 +0100
+++ dovecot     2016-10-16 13:14:26.286454035 +0100
@@ -142,6 +142,7 @@
           ($ThisLine =~ /auth-worker/) or
           ($ThisLine =~ /auth:.*: Connected to/) or
           ($ThisLine =~ /Connection closed/) or
+          ($ThisLine =~ /Logged out/) or
           ($ThisLine =~ /IMAP.*: Connection closed bytes/) or
           ($ThisLine =~ /IMAP.* failed with mbox file/) or
          ($ThisLine =~ /discarded duplicate forward to/) or 

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IE.utf8, LC_CTYPE=en_IE.utf8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_IE.utf8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages logwatch depends on:
ii  perl                            5.24.1~rc3-3
ii  postfix [mail-transport-agent]  3.1.0-5+b1

Versions of packages logwatch recommends:
pn  libdate-manip-perl   <none>
pn  libsys-cpu-perl      <none>
pn  libsys-meminfo-perl  <none>

Versions of packages logwatch suggests:
ii  fortune-mod  1:1.99.1-7

-- no debconf information

Reply via email to