Hi! How to write PIDs to syslog?
Example: Sep 19 00:57:00 hostname dovecot: pop3-login: Login: user=< username@domainname.com >, method=PLAIN, rip=XXX.XXX.XXX.XXX, lip=XXX.XXX.XXX.XXX, mpid=14407, TLS, session=<6LYlcmYDAQC4reGs> Sep 19 00:57:00 hostname dovecot: pop3( username@domainname.com ): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0 Sep 19 00:57:09 hostname exim[14423]: 2014-09-19 00:57:09 dovecot_login authenticator failed for s16010629.onlinehome-server.info (User) [82.165.16.9]: 535 Incorrect authentication data (set_id=front) Sep 19 00:57:09 hostname exim[14424]: 2014-09-19 00:57:09 dovecot_login authenticator failed for s16010629.onlinehome-server.info (User) [82.165.16.9]: 535 Incorrect authentication data (set_id=front
I need it because i write all logs to postgresql and analyze them with Adiscon LogAnalyzer.
Perhaps, per-process logs entry with PID would be better.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Fri, 19 Sep 2014, Фадеев Виталий Львович wrote:
How to write PIDs to syslog?
use %p, see http://wiki2.dovecot.org/Variables and log_format
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBVBvm+Hz1H7kL/d9rAQKHgQf+PU39QjKiEfwBTyl33H9j3ouG/veb+c+5 dqEU60AnVO+5NRceuQMfbf0leHQRazGQfeAVJYLDZa61w7hBme7vhCa0IGpUObq7 qlgcU/zIwO/JPuPsDEMfiQp/5VjLRSaCK/U11PQ+KYCuvjppozh9/vGsuQA4Kquo 8qKIkA+hR9aFD7GMXLGiVZ/qeRF7hF48jEUY9aBivGgnwPh1nBFEOyxQGIf6rvSB IoIi0HLzVRQcF7l0XA7+//fPaPw/jERgGDbrp7xlLGzJpLtKdnXIxhm2Mbtp7Di9 zCdfF7N6Ow9f+hOl+xkMPkdO3qRi9YaKwWlWhoY/bI7av1xjuDf97g== =uxVt -----END PGP SIGNATURE-----
participants (2)
-
Steffen Kaiser
-
Фадеев Виталий Львович