Dovecot 2.2.21 change imap logout format (and broke my log parsing)

Teemu Huovila teemu.huovila at dovecot.fi
Wed Mar 23 10:54:13 UTC 2016



On 22.03.2016 17:59, Alessio Cecchi wrote:
> Hi,
> 
> after upgrade to dovecot-2.2.21 the log of "imap logout" format changed
> 
> from:
> Mar  1 03:40:44 pop01 dovecot: imap(info at domain.com): Connection closed in=111 out=1522 session=<lusrsfMsXNVf79ju>
> 
> to:
> Mar  3 03:48:11 pop01 dovecot: imap(info at domain.com): Connection closed (IDLE running for 0.001 + waiting input for 2088.878 secs, 2 B in + 10+0 B out, state=wait-input) in=224 out=2834 session=<6XTzihst3uUFqB6m>
> 
> Can "(IDLE running for 0.001 + waiting input for 2088.878 secs, 2 B in + 10+0 B out, state=wait-input)" removed from the log?
> 
> My imap_logout_format is:
> 
> imap_logout_format = in=%i out=%o session=<%{session}>
I think this should only happen when a client disconnects without issuing the LOGOUT command. So it can be viewed as an error condition. The extra output was added, to support debugging such situations. It could be argued it is a more common use case to want to know the issue, than not, but it is a matter of opinion. Maybe a setting to disable it could be considered.

For reference, these are the commits that break your parsing:
https://github.com/dovecot/core/commit/266d72b0b32d5b105de96aac0c050d5a4c0ed3a8
https://github.com/dovecot/core/commit/fa5c3e6ebdcebde921ddbbe43219774ceaf081f0

br,
Teemu Huovila


> 
> Thanks


More information about the dovecot mailing list