Re: dovecot problems
Willi Mann <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi!
Seems that in r125, an old patch was applied. Could you replace this line by
$ThisLine =~ s/^\w{3} .\d \d\d:\d\d:\d\d (?:[^\s:]* |)//;
please? That's what's the current debian package does with this line (AFAIR,
the problem was that depending on the log target (syslog vs. dovecot direct
logging), the hostname is included - or not.
WM
Orion Poplawski wrote:
> Since updating to logwatch svn 125 on my dovecot 2.0.9 EL6 server it's not
> matching the login lines:
>
> mercury dovecot: imap-login: Login: user=<lund>, method=PLAIN,
> rip=127.0.0.1, lip=127.0.0.1, mpid=10356, TLS: 1 Time(s)
>
> I think this in r125 is the culprit:
>
> @ -135,7 +135,7 @@
> while (defined($ThisLine = <STDIN>)) {
> # remove timestamp. We can't use *RemoveHeaders because we need
> # the service name
> - $ThisLine =~ s/^\w{3} .\d \d\d:\d\d:\d\d [^ ]* //;
> + $ThisLine =~ s/^\w{3} .\d \d\d:\d\d:\d\d //;
> if ( ($ThisLine =~ /(?:ssl-build-param|ssl-params): SSL parameters
> regeneration completed/) or
> ($ThisLine =~ /ssl-params: Generating SSL parameters/) or
> ($ThisLine =~ /auth-worker/) or
>
> as it no longer removes the hostname. Why was this done?
>
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912