Re: Logwatch Dovecot Deliver Summary
"Klaipedaville on Google" <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <79CB487003984B298EE898FBF14016C7@Computer> |
Hey Orion, Thank you for getting back to me again. >*OnlyService is not "commented out". The * indicates an executable script for logwatch. Well, my OnlyService has two symbols in front of it. They are # and *. It looks like this: #*OnlyService = (imap-login|pop3-login|dovecot) That’s why I said it was commented out in my case. Anyway, the line is not applicable because it does not work for me either with #* or * or without anything in front of it at all. My line was the next one and putting an asterisk * in front of RemoveHeaders like this *RemoveHeaders did the trick for me. >The OnlyService script is used to filter syslog logfiles and only get the requested services. This doesn't work for your dovecot-info.log files because these are not syslog files and do not contain the syslog service field. Thank you for letting me know what this line does. It’s been useful to know. Appreciate. Regards, Dennis. From: Orion Poplawski Sent: Tuesday, May 13, 2014 19:27 To: Klaipedaville on Google ; [email protected] Subject: Re: [Logwatch-devel] Logwatch Dovecot Deliver Summary On 05/13/2014 03:39 AM, Klaipedaville on Google wrote: > Hey Orion! > You are the man! I got working! Many thanks! > All my custom configuration is working fine, I did not change anything in > there at all. Do you know where this tiny silly little problem was? You > wouldn’t believe it I spent 7 days looking for it! > It was in here /usr/share/logwatch/default.conf/services/dovecot.conf: > #*OnlyService = (imap-login|pop3-login|dovecot) > *RemoveHeaders = "^\w{3} .\d \d\d:\d\d:\d\d (?:[^\s:]* )?" > These two lines looked like this: > OnlyService = (imap-login|pop3-login|dovecot) > RemoveHeaders = "^\w{3} .\d \d\d:\d\d:\d\d (?:[^\s:]* )?" > as soon as I returned the #* and * in front of it it started to behave! > Well, the second line is rather understandable and self explanatory. However, > could anybody please, explain what the heck does the first line do? Well, my > guess is and my eyes tell me which is quite obvious that it is supposed to > check OnlyService of imap, pop3, and dovecot login. But I see it’s commented > out by default and nothing ever happens if I also try to put it in use either > with * or without * Is it perhaps for Unix accounts only as my virtual users > (non-Unix) are not affected by this line of code in any way? *OnlyService is not "commented out". The * indicates an executable script for logwatch. The OnlyService script is used to filter syslog logfiles and only get the requested services. This doesn't work for your dovecot-info.log files because these are not syslog files and do not contain the syslog service field. -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane [email protected] Boulder, CO 80301 http://www.nwra.com ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Logwatch-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/logwatch-devel