Bug: dovecot service not matching lines from syslog-ng 3.6.2
Wolfgang Mueller <[email protected]> Sat, 21 Mar 2015 05:02:51 +0100
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello there. I recently updated syslog-ng-3.4.8 to version 3.6.2. After the update, logwatch would no longer match any lines produced by dovecot. I compared log output from before and after the update, which revealed that syslog-ng now adds the PID to the dovecot handle. This was already the case for every other service and don't know why syslog-ng used to omit this. Anyway, this "change" is not yet reflected in the dovecot service file. I have attached a simple patch that fixes the issue. -- Wolfgang Mueller / vehk.de / 0xc543cfce9465f573 Ed is the standard text editor. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Logwatch-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/logwatch-devel
dovecot.patch
(text/x-diff, 424 B)
--- dovecot-old 2015-03-21 04:16:10.000000000 +0100
+++ dovecot-new 2015-03-21 04:17:21.827361526 +0100
@@ -130,7 +130,7 @@
}
# Handle "dovecot: <svc>" and "dovecot: [ID yyyyy mail.info] <svc"
-my $dovecottag = qr/dovecot:(?:\s*\[[^]]+\])?/;
+my $dovecottag = qr/dovecot(?:\[\d+\])?:(?:\s*\[[^]]+\])?/;
while (defined($ThisLine = <STDIN>)) {
# remove timestamp. We can't use *RemoveHeaders because we need the
signature.asc
(application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABAgAGBQJVDO1rAAoJEPaw3kg4a92iF64QAJcTEZgv5jtsQ2S+ueyVByXD MlXX0vTf4WUnNd0xDUz0nnTvYUEQNKvoyZuo03K9JtmO8x5ksQxYkVcXBr4li3gV DWCflSCMcYHC2oDo1vM0nFeb/+SgX7Vl+qq6ImhwcVdpvWg0B6OqfrMvxUFUI8hC efabe5PbkXxgKUt2ISVw5qPQ7EblMzKLeBdFpOe9fYJDFXlIJgqty1X7r0y6f81O UMGNZWafF6xF5KLtZE3I6ZtX73h+YdJ66hIiDwA310Jw++aJsOzTywN4t3ev71re rPIKzZwUXsOfBklyLDU1jnqYmrUvrw4i9loNMxSX5X9ez7rtzXDM5jvVnbkKtCZ0 aVxPkYchSVLIFTZa4XJp1k+rbh5Yf7SzTXLIHylhh0EToUFS7o2drglfkbfb/dTS dDuNsJ/qLvZlpGfe+qJjI4rL5sZ4DVf6N8u0xw6V8fUGETZhYo2Ul4VzTsT55BAt 0O7ZtNbqWNtiVU+mZErGXbRaRSkNQPcj0CaQ+iI3K5dKSNyO6Q2fsDnjE49N7MYo jRAajUZM2I0EML04sFayUmcdQFtsmjEB+dd60BTmnwm6BVppBxSszJgZiJb1BLdM H5tob7yBjgbpnnWDg+SIS9vvlQhMPxeajHZZucCnw61I8OK3zvq8unN5anhjEor/ 9r9aESvkD2BGx8jBAGXB =YbyN -----END PGP SIGNATURE-----