Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VLOG issues after upgrade 1.3.33-r5 to 1.3.34-r10 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
geowapa
n00b
n00b


Joined: 08 Sep 2004
Posts: 50

PostPosted: Mon Dec 19, 2005 3:41 am    Post subject: VLOG issues after upgrade 1.3.33-r5 to 1.3.34-r10 [SOLVED] Reply with quote

I finally upgraded my production server from 1.3.33-r4 to 1.3.34-r10. No issues with the configuration files, however I've discovered that it was no longer logging. My test server seemed to upgrade fine, but there was so little activity, I didn't notice that the logs were missing.

In looking at the configuration upgrade, all mention of apachesplitlogfile and the VLOG environment variable is deleted. I added the following lines back into httpd.conf, and added the Setenv VLOG to the vhost definitions

CustomLog logs/access_log combined env=!VLOG
# If VLOG is defined in conf/vhosts/Vhosts.conf, we use this entry
CustomLog "|/usr/sbin/apachesplitlogfile" vhost env=VLOG

The apachesplitlogfile process starts and appears active in the system, but nothing gets written to the log files at all. A zero-length "vhost.log" is created. If I comment out the Setenv for a vhost, it starts logging to the access_log file.

It almost appears as if the "vhost" is being passed literally instead of the vhost name, resulting in the zero length vhost.log

Can anyone comment - with the new apache configuration layout, is there any way to use apachesplitlogfile, or is it deprecated? I can't find any meaningful mentions of it in the Bugzilla system or in the forums.

Thanks,
George


Last edited by geowapa on Mon Dec 19, 2005 3:52 am; edited 1 time in total
Back to top
View user's profile Send private message
geowapa
n00b
n00b


Joined: 08 Sep 2004
Posts: 50

PostPosted: Mon Dec 19, 2005 3:51 am    Post subject: VLOG issues after upgrade 1.3.33-r5 to 1.3.34-r10 [SOLVED] Reply with quote

Never mind... Turns out the new Apache definitions are missing the required LogFormat statement.

Adding the following to httpd.conf restores the VLOG logging

LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" VLOG=%{VLOG}e" vhost

George
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum