[Dovecot] Fwd: RE: pid stamp on log entries?
On Feb 26 2007, Bill Boebel wrote:
On Mon, February 26, 2007 2:40 pm, bhayden@umn.edu said:
Hi folks. Is there a way to modify the log stamp to include pid as well as time?
Take a look at http://wiki.dovecot.org/Variables
%p = pid
I use: mail_log_prefix = "%Us(%u)(%p): "
Syslog adds the timestamp though.
Thanks for that. A more specific question: is there a way to have imap/pop-login processes log the PID of the child imap/pop process? This would be for the purpose of connecting a specific authentication with its own session activity in the case of multiple logins by a single user.
-Brian
On Tue, 2007-02-27 at 14:48 -0600, bhayden@umn.edu wrote:
Thanks for that. A more specific question: is there a way to have imap/pop-login processes log the PID of the child imap/pop process? This would be for the purpose of connecting a specific authentication with its own session activity in the case of multiple logins by a single user.
No, that information doesn't get transferred. And imap-login actually never even knows the PID, so it would have to be done the other way: imap would have to log imap-login's PID.
If you really want that, you could modify src/master/login-process.c auth_master_callback(). The login process PID is in request->process->pid. Pass it to create_mail_process() and log it there or pass to the mail process or something.
participants (2)
-
bhayden@umn.edu
-
Timo Sirainen