Package: squid Version: 2.6.19-1 Severity: wishlist /usr/share/doc/squid/examples/squid.conf has some logformat lines which simulates the log format of older versions of squid, but these lines don't work well. It seems that the separator between the log format name and the log format specification is exactly one space and everything after it is written to the log literally. If I uncomment the example squid.conf, squid adds one space to each line of the log, which is inconvenient when I try to parse the log (at least calamaris fails to work because it uses a regular expression that begins with ^). I suggest the attached patch. Please note that the patch is for /usr/share/doc/squid/examples/squid.conf itself, not for the source tree.
-- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.21-oohara Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Versions of packages squid depends on: ii adduser 3.102 Add and remove users and groups ii debconf [debconf-2.0] 1.5.11etch1 Debian configuration management sy ii libc6 2.7-4 GNU C Library: Shared libraries ii libdb4.6 4.6.21-5 Berkeley v4.6 Database Libraries [ ii libldap-2.4-2 2.4.7-6.2 OpenLDAP libraries ii libpam0g 0.99.7.1-6 Pluggable Authentication Modules l ii logrotate 3.7.1-3 Log rotation utility ii lsb-base 3.1-23.2etch1 Linux Standard Base 3.1 init scrip ii netbase 4.29 Basic TCP/IP networking system ii squid-common 2.6.19-1 Internet object cache (WWW proxy c squid recommends no packages. -- debconf information: squid/fix_cachedir_perms: false squid/fix_lines: true
--- squid.conf-unmodified 2008-05-02 14:41:03.000000000 +0900 +++ squid.conf 2008-05-02 14:37:10.000000000 +0900 @@ -1945,8 +1945,8 @@ # st Request+Reply size including HTTP headers # % a literal % character # -#logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt -#logformat squidmime %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt [%>h] [%<h] +#logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt +#logformat squidmime %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt [%>h] [%<h] #logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh #logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh #