How do I add a photo to my comment or blog entry?
Apache2 (RedHat Enterprise) isn't logging using SetEnv VLOG
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Apache HTTP Server > Apache2 (RedHat Enterprise) isn't logging using SetEnv VLOG 6 January 2005 12:03:10

  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

Apache2 (RedHat Enterprise) isn't logging using SetEnv VLOG

Chris Sammis 6 January 2005 12:03:10
 A week and a half ago we transitioned to a new web server running RedHat
Enterprise 3 and Apache 2.0.46. We have a lot of vhosts, and they all
want their own logs, so we used the SetEnv VLOG method of logging.
However, that isn't working on the new server. VLOG log files aren't
getting written. Here's what I've tried:

* Turning up the error level on the error log (which is working). It
doesn't show anything out of the ordinary.
* Using a combined log file. The combined logfile writes properly, but
that won't work for our setup.
* Checking directory permissions. Everything's okay, like I said the
combined log file and error log files operate normally.
* Manually calling the split-logfile script and injecting a couple of
made-up log lines. That works correctly too, the made-up lines are
appended to the appropriate VLOG file.
* Putting some bad syntax into the split-logfile script and seeing what
happens. The error log starts filling up with "script failed
unexpectedly" messages, so apparently the server is calling the script.

Here's the relevant lines of httpd.conf. They're copied verbatim out of
the old apache2.conf and placed at the end of the file so they aren't
getting overriden by anything.

LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\" VLOG=%{VLOG}e" vhosts
SetEnv VLOG ""
CustomLog "|/usr/sbin/split-l­ogfile" vhosts env=VLOG

All other CustomLog directives are commented out, and that's the only
SetEnv VLOG directive present.
Anyone have any ideas for troubleshooting I haven't tried yet? Thanks.

--
Chris Sammis
On the Web: http://csammisrun.n­et
"Computer science is no more about computers than astronomy is about telescopes" -- E. J. Dijkstra
Add comment
Joshua Slive 4 January 2005 21:09:14 permanent link ]
 On Tue, 04 Jan 2005 11:59:18 -0600, Chris Sammis <csammis@cs.iastate­.edu> wrote:> A week and a half ago we transitioned to a new web server running RedHat> Enterprise 3 and Apache 2.0.46. We have a lot of vhosts, and they all> want their own logs, so we used the SetEnv VLOG method of logging.> However, that isn't working on the new server. VLOG log files aren't> getting written. Here's what I've tried:
LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\"> \"%{User-Agent}i\" VLOG=%{VLOG}e" vhosts> SetEnv VLOG ""> CustomLog "|/usr/sbin/split-l­ogfile" vhosts env=VLOG

What *exactly* is this supposed to accomplish? What is the VLOG env
variable supposed to contain, and where does it get set?

You are obviously using a redhat-modified version of apache, so you
mayt have better luck asing in a redhat support forum.

Joshua.
Add comment
Chris Sammis 4 January 2005 21:23:16 permanent link ]
 Joshua Slive wrote:
On Tue, 04 Jan 2005 11:59:18 -0600, Chris Sammis <csammis@cs.iastate­.edu> wrote:>
A week and a half ago we transitioned to a new web server running RedHat>>Enterprise 3 and Apache 2.0.46. We have a lot of vhosts, and they all>>want their own logs, so we used the SetEnv VLOG method of logging.>>However, that isn't working on the new server. VLOG log files aren't>>getting written. Here's what I've tried:>>
LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\">>\"­%{User-Agent}i\" VLOG=%{VLOG}e" vhosts>>SetEnv VLOG "">>CustomLog "|/usr/sbin/split-l­ogfile" vhosts env=VLOG>>
What *exactly* is this supposed to accomplish? What is the VLOG env>variable supposed to contain, and where does it get set?>
The LogFormat line adds the %V (virtual host) to a standard log line.
The CustomLog line pipes the logging output to a script, split-logfile,
which is detailed on the Apache support pages.
The VLOG env is set to the directory where the logs are supposed to go.
If it is left blank, the split-logfile script writes the logfiles to
/var/log/httpd.
You are obviously using a redhat-modified version of apache, so you>mayt have better luck asing in a redhat support forum.>
Perhaps, but what could have been changed between a RH version and a
stock version that would affect piping log output to files?
Joshua.>
------------------­--------------------­--------------------­----------->To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org>For additional commands, e-mail: users-help@httpd.ap­ache.org>

--
Chris Sammis
Mobile: 515-450-9553
On the Web: http://csammisrun.n­et
"Computer science is no more about computers than astronomy is about telescopes" -- E. J. Dijkstra
Add comment
Joshua Slive 4 January 2005 21:47:25 permanent link ]
 On Tue, 04 Jan 2005 12:23:16 -0600, Chris Sammis <csammis@cs.iastate­.edu> wrote:> The LogFormat line adds the %V (virtual host) to a standard log line.> The CustomLog line pipes the logging output to a script, split-logfile,> which is detailed on the Apache support pages.> The VLOG env is set to the directory where the logs are supposed to go.> If it is left blank, the split-logfile script writes the logfiles to> /var/log/httpd.>
You are obviously using a redhat-modified version of apache, so you> >mayt have better luck asing in a redhat support forum.> >
Perhaps, but what could have been changed between a RH version and a> stock version that would affect piping log output to files?

The apache version does not use the VLOG env variable. See:
http://svn.apache.o­rg/viewcvs.cgi/httpd­/httpd/branches/2.0.­x/support/split-logf­ile.in?rev=106449&vi­ew=markup
So obviously your split-logfile script is modified.

Given that I have no idea what modifications were made, you should
probably talk to redhat.

Joshua.
Add comment
Joe Orton 6 January 2005 12:03:10 permanent link ]
 On Tue, Jan 04, 2005 at 01:47:25PM -0500, Joshua Slive wrote:> On Tue, 04 Jan 2005 12:23:16 -0600, Chris Sammis <csammis@cs.iastate­.edu> wrote:> > The LogFormat line adds the %V (virtual host) to a standard log line.> > The CustomLog line pipes the logging output to a script, split-logfile,> > which is detailed on the Apache support pages.> > The VLOG env is set to the directory where the logs are supposed to go.> > If it is left blank, the split-logfile script writes the logfiles to> > /var/log/httpd.> >
You are obviously using a redhat-modified version of apache, so you> > >mayt have better luck asing in a redhat support forum.> > >
Perhaps, but what could have been changed between a RH version and a> > stock version that would affect piping log output to files?>
The apache version does not use the VLOG env variable. See:> http://svn.apache.o­rg/viewcvs.cgi/httpd­/httpd/branches/2.0.­x/support/split-logf­ile.in?rev=106449&vi­ew=markup> So obviously your split-logfile script is modified.>
Given that I have no idea what modifications were made, you should> probably talk to redhat.

We don't ship a copy of the split-logfile script at all let alone a
modified one; Chris, I suggest you post a copy of the split-logfile
script you're using so we can see it.

joe

-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Apache HTTP Server > Apache2 (RedHat Enterprise) isn't logging using SetEnv VLOG 6 January 2005 12:03:10

see also:
2 problems with 9.16
Aligning Tables with CSS
problems building myodbc-3.5.2 on…
пройди тесты:
see also:
baz-baz-baz-baz pam-parabaram baz-b...

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .