Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86451 - Squid 2.5.9 does not obey logformat parameter
Summary: Squid 2.5.9 does not obey logformat parameter
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Network Proxy Developers (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-23 18:31 UTC by Simon Tsang
Modified: 2005-03-24 02:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Tsang 2005-03-23 18:31:33 UTC
In squid.conf, there is a logformat parameter that allow users to customize their own log format.  However, in reality that parameter does not affect the format of the logs (access.log cache.log etc) at all.  emulate_httpd_log is set to off and the rest of the configation follows the standard except logformat which is set to logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh.

This error has been confirmed on both PPC and i686-x86 platform.

Reproducible: Always
Steps to Reproduce:
1.emerge squid 2.5.9
2.configurate squid.conf so that logformat is combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
3.logformat does not have any effect on the log files

Actual Results:  
The logs files outputs the following log which does not obey the logformat

1111660241.248    192 192.168.1.100 TCP_MISS/304 244 GET
http://forums.gentoo.org/templates/gentoo/formIE.css - DIRECT/140.211.166.170 -

Expected Results:  
The outputs to the logfiles should obey the logformat in squid.conf

192.168.1.100 - - [10/Mar/2005:09:13:56 +0800] "GET
http://forums.gentoo.org/templates/gentoo/formIE.css HTTP/1.1" 244 -
"http://forums.gentoo.org/templates/gentoo/formIE.css" "Mozilla/5.0 (Windows NT
4.0; U) Opera 7.54  [en]"

USE="ssl pam"
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/specs
Configured with: /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/configure
--enable-version-specific-runtime-libs --prefix=/usr
--bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.5
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3
--host=i686-pc-linux-gnu --disable-altivec --enable-nls
--without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu
--with-system-zlib --disable-checking --disable-werror
--disable-libunwind-exceptions --enable-shared --enable-threads=posix
--disable-multilib --disable-libgcj --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.3.5  (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2005-03-23 22:32:44 UTC
did you set logformat and access_log as following?
  logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
  access_log /var/log/squid/access.log combined

Comment 2 Simon Tsang 2005-03-24 02:04:08 UTC
My acess log was set to access_log /var/log/squid/access.log squid >_<  I should be access_log /var/log/squid/access.log combined.  After I have changed the access_log option, the log outputs in the correct format. Sorry about that.  This bug has been marked as INVALID.