osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: http / apache - msg#00010

List: log.logwatch.devel

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index

/usr/share/logwatch/default.conf/logfiles/http.conf:
> ########################################################
> # Define log file group for httpd
> ########################################################
>
> # What actual file? Defaults to LogPath if not absolute path....
> LogFile = httpd/*access_log
> LogFile = apache/*access.log.1
> LogFile = apache/*access.log
> LogFile = apache2/*access.log.1
> LogFile = apache2/*access.log
> LogFile = apache-ssl/*access.log.1
> LogFile = apache-ssl/*access.log

I noticed the error log is absent. That seems a bit odd, as the primary
focus of the logwatch filter should be reporting errors. That means
lines like:

[Sun Jul 1 06:52:52 2007] [error] (2)No such file or directory:
mod_mime_magic: can't read magic file /usr/share/misc/file/magic.mime

that don't show up in the access log will be missed.

I'm not sure how best to correct for this, as the format is different
and thus simply can't be added to the above list. I suppose a new log
file group, apache_error, could be created, with a format converter to
feed into the existing http service filter. A bit less than ideal, as it
blends error logs with everything else, which the service filter would
only have to then try and separate.

The error log might also be tricky to handle due to it containing
potentially arbitrary text with no headers written by CGI programs.
Often these lines contain only debugging information and can be ignored,
but on a production server that might not be the case, and you might
want to report all headerless lines as errors.

By the way, why is the group and service called 'http' if it is
Apache-specific?

-Tom

--
Tom Metro
Venture Logic, Newton, MA, USA
"Enterprise solutions through open source."
Professional Profile: http://tmetro.venturelogic.com/


Thread at a glance:

Previous Message by Date:

cups

I see there isn't a filter for CUPS. I believe it uses Common Log Format, and a minimal filter should just need to summarize the contents of the error log. The next step would be summarizing the contents of the access log. I don't have enough activity in my CPUS logs to know what would be useful. My logs simply have these two lines repeated: localhost - - [02/Jul/2007:17:55:45 -0400] "POST / HTTP/1.1" 200 264 Get-Jobs successful-ok localhost - - [02/Jul/2007:18:05:22 -0400] "POST / HTTP/1.1" 200 129 CUPS-Get-Classes successful-ok In theory, due to the use of CLF, these logs could be processed with the same code used for a web server, though I have my doubts that the service filter for Apache will produce something useful for CUPS. -Tom -- Tom Metro Venture Logic, Newton, MA, USA "Enterprise solutions through open source." Professional Profile: http://tmetro.venturelogic.com/

Next Message by Date:

scripts/postfix 1.35 BUG

Hi there, There's a bug in the current postfix script, regex like email adresses in the logfile are crashing the script. Jul 5 05:56:39 mail postfix/smtp[14344]: E2C4E17B5BD3: to=<+._-ejkzqii@xxxxxxxxxxxxxxxxxxxxx>, relay=mail.crashtest-service.o rg[212.101.203.59]:25, delay=1.3, delays=1.2/0.01/0.02/0.06, dsn=5.7.1, status=bounced (host mail.crashtest-service.org[212.10 1.203.59] said: 550 5.7.1 Unable to relay for +._-ejkzqii@xxxxxxxxxxxxxxxxxxxxx (in reply to RCPT TO command)) Insert in sub cleanhostreply($ $ $ $) Line 2158 $recip =~ s/([\S])/\\$0/g; Thanks alot for your efforts W greets from germany Marius -- ICSmedia GmbH in Münster: Soester Straße 13, 48155 Münster in Dortmund: Mönchenwordt 5, 44137 Dortmund Telefon: (0251) 60 60-416 Telefax: (0251) 60 60-190 http://www.icsmedia.de E-Mail: marcus.isken@xxxxxxxxxxx --------------------------------------------- Geschäftsführung: Frank Wulf Sitz der Gesellschaft: Münster Amtsgericht: Münster HRB: 46 97

Previous Message by Thread:

cups

I see there isn't a filter for CUPS. I believe it uses Common Log Format, and a minimal filter should just need to summarize the contents of the error log. The next step would be summarizing the contents of the access log. I don't have enough activity in my CPUS logs to know what would be useful. My logs simply have these two lines repeated: localhost - - [02/Jul/2007:17:55:45 -0400] "POST / HTTP/1.1" 200 264 Get-Jobs successful-ok localhost - - [02/Jul/2007:18:05:22 -0400] "POST / HTTP/1.1" 200 129 CUPS-Get-Classes successful-ok In theory, due to the use of CLF, these logs could be processed with the same code used for a web server, though I have my doubts that the service filter for Apache will produce something useful for CUPS. -Tom -- Tom Metro Venture Logic, Newton, MA, USA "Enterprise solutions through open source." Professional Profile: http://tmetro.venturelogic.com/

Next Message by Thread:

scripts/postfix 1.35 BUG

Hi there, There's a bug in the current postfix script, regex like email adresses in the logfile are crashing the script. Jul 5 05:56:39 mail postfix/smtp[14344]: E2C4E17B5BD3: to=<+._-ejkzqii@xxxxxxxxxxxxxxxxxxxxx>, relay=mail.crashtest-service.o rg[212.101.203.59]:25, delay=1.3, delays=1.2/0.01/0.02/0.06, dsn=5.7.1, status=bounced (host mail.crashtest-service.org[212.10 1.203.59] said: 550 5.7.1 Unable to relay for +._-ejkzqii@xxxxxxxxxxxxxxxxxxxxx (in reply to RCPT TO command)) Insert in sub cleanhostreply($ $ $ $) Line 2158 $recip =~ s/([\S])/\\$0/g; Thanks alot for your efforts W greets from germany Marius -- ICSmedia GmbH in Münster: Soester Straße 13, 48155 Münster in Dortmund: Mönchenwordt 5, 44137 Dortmund Telefon: (0251) 60 60-416 Telefax: (0251) 60 60-190 http://www.icsmedia.de E-Mail: marcus.isken@xxxxxxxxxxx --------------------------------------------- Geschäftsführung: Frank Wulf Sitz der Gesellschaft: Münster Amtsgericht: Münster HRB: 46 97
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!