[squid-users] logformat emulate_httpd_log

From: Alexandre Chappaz <alexandrechappaz_at_gmail.com>
Date: Wed, 14 Nov 2012 10:38:08 +0100

Hi,

I am looking for some precision on the %>st in the log format directive.
with squid 2.6, I used to set

emulate_httpd_log on

In order to have the useragent and referer I commented this line out
and used instead the combined format as defined here :

logformat combined %>a %[ui %[un [%tl] "%rm %ru HTTP/%rv" %Hs %<st
"%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh

This is messing up with the scripts I have for parsing the logfiles in
the sense that %Hs and %<st now report '-' character when I was
expecting a '0' with the emulate_httpd_log on.

Is there a way to turn these 2 fields back to the emulate_httpd_log behavior?

Regards
Alex
Received on Wed Nov 14 2012 - 09:38:15 MST

This archive was generated by hypermail 2.2.0 : Wed Nov 14 2012 - 12:00:04 MST