Mercurial > repos > other > Puppet
changeset 184:ab82c65dcb28 puppet-3.6
Handle Dovecot "logged out" messages in LogWatch
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 14 Dec 2018 19:58:09 +0000 |
parents | ac164022ffb8 |
children | 78dc899775b7 |
files | common/logwatch/dovecot |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/common/logwatch/dovecot Fri Dec 07 19:54:20 2018 +0000 +++ b/common/logwatch/dovecot Fri Dec 14 19:58:09 2018 +0000 @@ -258,6 +258,8 @@ $Disconnected{$Reason}++; } elsif (($Reason) = ($ThisLine =~ /Disconnected: (.*) (bytes|top|in)=.*/) ) { $Disconnected{$Reason}++; + } elsif ($ThisLine =~ /Logged out (rcvd|bytes|top|in)=.*/) { + $Disconnected{"Logged out"}++; } elsif (($Reason) = ($ThisLine =~ /Disconnected \((.*)\):/) ) { $Disconnected{$Reason}++; } elsif (($Reason, $Host) = ($ThisLine =~ /TLS initialization failed/) ) {