Log format - seems to prefix vhost name


New Member

Iam using a server level access log, and each vhost has accesslog { useServer 1; }

iam using the a custom log format, but the vhost is always being prepended to the logfile, before my log format; like access.log looks like
["vhostname.com"] %h %l %u %t \"%r\" %>s %b

How to get rid of the prepended part, such the access log only contains my log format?

To clarify, if i set my log format as XXX %h %l %u %t \"%r\" %>s %b i would expect the first word in each log line to be XXX - but yet its not, its ["vhostname.com"] field, ie:
["vhostname.com"] XXX %h %l %u %t \"%r\" %>s %b

This makes the access log incompatable with existing systems like awstats etc.

Any ideas?


I don't see the same issue as you have on our test server. OLS output log as format defined - - [08/Apr/2021:15:37:46 -0400] "GET / HTTP/1.1" 304 0, maybe you can create a ticket, we can have a further check.