Hi
Am 22.09.2013 03:13, schrieb Reindl Harald:
Am 22.09.2013 02:20, schrieb Timo Sirainen:
%$ is the status, so you're asking for another status variable. Something like in the attached patch, where you can replace %$ with %{login_status}?
*exactly* that's it - many thanks!
%{login_status} -> ab[2].value = client->login_success ? "OK" : "Failed"; in case of deeper debugging one can always set "%$" temporary
when we can get rid of "TLSv1 with cipher" and only have the cipher the log would become really tiny and easy to follow without too much linebreaking - not to forget the logsize in case of a lot of POP3 users every few minutes
nearly perfect
2.2.6 with the patch:
Sep 25 12:22:26 testserver dovecot: pop3-login: OK: pop3@testserver.rhsoft.net, 91.118.73.100, DIGEST-MD5, TLSv1 with cipher RC4-SHA (128/128 bits) Sep 25 12:22:26 testserver dovecot: pop3-login: OK: pop3@testserver.rhsoft.net, 91.118.73.100, DIGEST-MD5, TLSv1 with cipher RC4-SHA (128/128 bits)
my dream:
Sep 25 12:22:26 testserver dovecot: pop3-login: OK: pop3@testserver.rhsoft.net, 91.118.73.100, DIGEST-MD5, RC4-SHA (128/128 bits) Sep 25 12:22:26 testserver dovecot: pop3-login: OK (disconnecting): pop3@testserver.rhsoft.net, 91.118.73.100, DIGEST-MD5, RC4-SHA (128/128 bits)
would allow rsyslog to skip the disconnect lines in case of OK and shorten the cipher output
:msg, contains, "OK (disconnecting)" ~