Index: [Article Count Order] [Thread]

Date:  Fri, 14 Mar 2008 13:44:17 -0400
From:  "Darrell D. Mobley" <dmobley (at mark) uhostme.com>
Subject:  [coba-e:12277] Re: Cron error messages
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <04b301c885fb$0768bfd0$6400a8c0@HPPAVILION>
In-Reply-To:  <47DAA78D.7000009 (at mark) dogsbody.org>
References:  <00cd01c8852b$9d6b6c10$e5b418ac (at mark) dell> <47DAA78D.7000009 (at mark) dogsbody.org>
X-Mail-Count: 12277

Yum pushed out these updates on November 18th, 2007, with changes to
httpd.conf:

472c470
< LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined
---
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
547c545

The former line was the original, the latter was what it was changed to.
During my update, my httpd.conf was left alone, the new one was saved as
httpd.conf.rpmnew.  I inquired in December whether the suggested change
would affect Webalizer and AWStats, and left my settings as they were.  I
have noticed no issues from leaving the %v out.

> -----Original Message-----
> From: Dogsbody [mailto:dan (at mark) dogsbody.org]
> Sent: Friday, March 14, 2008 12:28 PM
> To: coba-e (at mark) bluequartz.org
> Subject: [coba-e:12276] Re: Cron error messages
> 
> 
> >> Ok, just started getting this on a server that I recently updated.
> >> Turns out it appears to be a difference in how Apache (httpd)
> >> is logging versus what analog expects to see.  My answer
> >> (that appears to have fixed it) was to edit the
> >> /etc/httpd/conf/httpd.conf file and change the LogFormat line
> >> as follows:
> >>
> >> <quote>
> >> ##LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
> >> \"%{User-Agent}i\""
> >> combined
> >> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
> >> \"%{User-Agent}i\""
> >> combined
> >> </quote>
> >>
> >> Note I copied the line, commented the original out, then
> >> deleted the %v and a space from the beginning of the line.
> >> Your mileage may vary... but it stopped my error messages from cron.
> 
> 
> Warning, I could be wrong but if memory serves the %v ads the virtual
> site name to the log file.  This is then used to split the logs into the
> correct site directories each night.  Make sure this hasn't broken after
> you make the change!
> 
> Dan