FreeBSD Administration

vlogger error in line 456

Vlogger is a great utility that intergrates into the apache web server and spits out the logs files into separate files for each site. If you run an apache web server with a large number of virtual sites (or even a few) you should take a look at vlogger.

Vlogger has one anoying error that comes up though.  This is the error:
Argument “-” isn’t numeric in numeric gt (>) at /usr/sbin/vlogger line 456, line 18

 

This error is caused because apache uses %b in the LogFormat directive be default instead of %B.  The %b adds the total bytes to the log file but if the bytes are 0 then it puts a – (dash) into the log file. Vlogger expects a 0.  To fix this, just change the %b to a %B on the LogFormat command in httpd.conf

 

Change this line:
LogFormat “%v %h %l %u %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\”” combined

To this:
LogFormat “%v %h %l %u %t \”%r\” %>s %B \”%{Referer}i\” \”%{User-Agent}i\”” combined

Leave a Comment

Your email address will not be published. Required fields are marked *