Dovecot 2.2.21 change imap logout format (and broke my log parsing)
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@domain.com): Connection closed in=111 out=1522 session=<lusrsfMsXNVf79ju>
to: Mar 3 03:48:11 pop01 dovecot: imap(info@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}>
Thanks
Alessio Cecchi Postmaster @ http://www.qboxmail.it https://www.linkedin.com/in/alessice
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@domain.com): Connection closed in=111 out=1522 session=<lusrsfMsXNVf79ju>
to: Mar 3 03:48:11 pop01 dovecot: imap(info@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/266d72b0b32d5b105de96aac0c050d5a4c0ed... https://github.com/dovecot/core/commit/fa5c3e6ebdcebde921ddbbe43219774ceaf08...
br, Teemu Huovila
Thanks
participants (2)
-
Alessio Cecchi
-
Teemu Huovila